
@import url("//hello.myfonts.net/count/3fb7d0");
@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:opsz,wght@9..40,100..1000&display=swap");/* =========================
   HERO: BASE LAYOUT
   ========================= */.big-hero-six {
    display: flex;
    position: absolute; /* positioning context for bubble */
    top: 0;
    height: 600px;
    background: #fff;
    z-index: 0;
  }/* Text blocks inside hero */.big-hero-six p {
    margin: 0;
  }.big-hero-six p:first-of-type {
    position: relative;
    left: 3px;
  }.big-hero-six p:last-of-type {
    position: relative;
    left: 3px;
    top: 4px;
  }@media (min-width: 520px) {
    .big-hero-six p:last-of-type { top: 8px; }
  }/* Floating showcase */.big-hero-six .showcase {
    position: relative;
    margin-top: 40px;
    left: -20px;
    transform: scale(.8);
    transform-origin: top left;
    top: 100px;
    min-height: 460px;
  }.big-hero-six .showcase .memojii {
    position: absolute;
    top: -280px;
    left: -130px;
    height: 260px;
    width: 400px;
    z-index: 3;
    transform: scale(.8) rotate(6deg);
    box-shadow: 0 4px 24px 2px rgba(14,30,37,.16);
    background-image: url(/assets/heroSection.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 22%;
    overflow: hidden;
  }.big-hero-six .showcase .memojii:hover {
    transform: scale(1) translateY(-16px) rotate(0deg);
  }/* Wave at bottom */.big-hero-six .wave-bottom {
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: auto;
    line-height: 0;
    pointer-events: none;
    z-index: 5;
  }.big-hero-six .wave-bottom path { fill: #663566; }/* Purple background band behind hero */.big-hero-six .background {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    max-width: 1440px;
    margin: auto;
    background: #663566;
    bottom: -164px;
    overflow: hidden;
  }/* Row layout: text (50vw) | image (flex) */.big-hero-six .main-content-wrapper {
    display: flex;
    align-items: flex-start;
    grid-gap: 32px;
    gap: 32px;
    z-index: 0;
  }.big-hero-six .main-content-wrapper .content {
    flex: 0 0 50vw;     /* exact half viewport width */
    max-width: 50vw;
    min-width: 0;
    position: relative;
    padding-top: 10%;
  }.big-hero-six .main-content-wrapper .content h1,
  .big-hero-six .main-content-wrapper .content p:first-of-type,
  .big-hero-six .main-content-wrapper .content p:first-of-type a {
    overflow: hidden;
    text-overflow: ellipsis;
  }.big-hero-six .main-content-wrapper > .memoji {
    flex: 1 1 auto;
    height: 55vh;
    border-radius: 22%;
    position: relative;
    top: 60px;
    right: 250px;
    display: block;
  }/* Video fallback styling */.big-hero-six video {
    position: relative;
    z-index: 1;
    width: 101%;
    flex: none;
    background: linear-gradient(to top, #FFA000, #FFA000 25%, #fff 25%, #fff 25%);
    opacity: 0.99;
  }/* =========================
     HERO: SMALL TWEAKS
     ========================= */@media (max-width: 975px) {
    .big-hero-six { z-index: 1; }
  }@media (max-width: 900px) {
    .big-hero-six .background { bottom: -64px; }
  }@media (max-width: 780px) {
    .big-hero-six { color: #0e1e25; z-index: 2; }
    .big-hero-six .background { background: #fff; }
    .big-hero-six .custom-wave { display: none; }
  
    .big-hero-six .main-content-wrapper {
      flex-direction: column;
      grid-gap: 16px;
      gap: 16px;
    }
    .big-hero-six .main-content-wrapper .content {
      flex: 0 0 auto;
      max-width: 100%;
      top: 0;
    }
    .big-hero-six .main-content-wrapper .content h1,
    .big-hero-six .main-content-wrapper .content p:first-of-type,
    .big-hero-six .main-content-wrapper .content p:first-of-type a {
      white-space: normal;
      text-overflow: clip;
    }
    .big-hero-six .main-content-wrapper > .memoji {
      max-width: 60vw;
      height: auto;
      top: 30px;
      align-self: center;
      right: 0;
    }
  }@media (max-width: 624px) {
    .big-hero-six h1 { font-size: 11vw; }
  }@media (max-width: 520px) {
    .big-hero-six .main-content-wrapper { font-size: 16px; }
    .big-hero-six h1 { font-size: 42px; margin: 4px 0; }
  }/* Second line of the headline: smaller, still part of the H1 for screen
     readers and search. */.big-hero-six h1 .hero-tagline {
    display: block;
    margin-top: 12px;
    font-size: clamp(22px, 2.4vw, 32px);
    font-weight: 700;
    line-height: 1.2;
    opacity: .75;
  }/* =========================
     HELLO BUBBLE (original design)
     ========================= *//* Bubble base + placement */.big-hero-six .hello-bubble {
    position: absolute;
    top: 40px;              /* tweak to position near memoji */
    right: 10vw;            /* tweak; viewport-based for responsiveness */
    z-index: 999;
  
    display: inline-flex;
    align-items: center;
    justify-content: center;
  
    min-width: 120px;
    max-width: 220px;
    padding: 12px 16px;
    background: #fff;
    color: #222;
    border-radius: 999px;   /* pill core */
    box-shadow: 0 10px 18px rgba(0,0,0,.12), 0 3px 8px rgba(0,0,0,.08);
  
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
    transition: transform 180ms ease, box-shadow 180ms ease;
  
    /* gentle idle float */
    animation: helloFloat 2.5s ease-in-out infinite;
    will-change: transform;
  }/* Tail made of two small circles pointing toward the memoji (to the RIGHT) */.big-hero-six .hello-bubble .hello-text::before,
.big-hero-six .hello-bubble .hello-text::after {
  content: "";
  position: absolute;
  background: #fff;
  border-radius: 50%;
  /* match your bubble's shadow */
  box-shadow:
    0 8px 14px rgba(0,0,0,.2),
    0 2px 6px rgba(0,0,0,.2);
}/* larger “connector” dot, slightly overlapping the bubble */.big-hero-six .hello-bubble .hello-text::before {
  width: 18px;
  height: 18px;
  /* place on the right edge, midway down */
  right: -50px;          /* negative pulls it outside the bubble */
  top: 52%;
  transform: translateY(-50%);
}/* smaller trailing dot—further toward the memoji */.big-hero-six .hello-bubble .hello-text::after {
  width: 10px;
  height: 10px;
  right: -70px;       
  top: 80%;
  transform: translateY(-50%);
}/* optional: pause the idle float while hovering for easier clicking */.big-hero-six .hello-bubble:hover,
.big-hero-six .hello-bubble.focus-visible {
  animation-play-state: paused;
}.big-hero-six .hello-bubble:hover,
.big-hero-six .hello-bubble:focus-visible {
  animation-play-state: paused;
}/* Hover/active/focus */.big-hero-six .hello-bubble:hover { transform: translateY(-2px); }.big-hero-six .hello-bubble:active { transform: translateY(0); }.big-hero-six .hello-bubble.focus-visible {
    outline: 3px solid #663566;
    outline-offset: 3px;
  }.big-hero-six .hello-bubble:focus-visible {
    outline: 3px solid #663566;
    outline-offset: 3px;
  }/* Greeting text + swap animation */.big-hero-six .hello-bubble .hello-text {
    position: relative;
    display: block;
    white-space: nowrap;
    font-size: clamp(16px, 2.2vw, 28px);
    opacity: 1;
    transform: translateY(0) scale(1);
    transition:
      opacity 180ms ease-out,
      transform 220ms cubic-bezier(.215,.61,.355,1);
  }/* phase 1: fade/slide out slightly */.big-hero-six .hello-bubble .hello-text.is-out {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }/* Idle float keyframes */@keyframes helloFloat {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-6px); }
    100% { transform: translateY(0); }
  }/* Responsive placement tweaks for bubble */@media (max-width: 900px) {
    .big-hero-six .hello-bubble { right: 260px; top: 300px; transform: scale(.9); }
  }@media (max-width: 600px) {
    .big-hero-six .hello-bubble { right: 260px; top: 300px; transform: scale(.9); }
  }/* Reduced motion preference */@media (prefers-reduced-motion: reduce) {
    .big-hero-six .hello-bubble { animation: none; transition: none; }
    .big-hero-six .hello-bubble .hello-text { transition: none; }
  }/* =========================
     HERO: RESPONSIVE FIXES
     Positions are derived from the memoji's own geometry: memoji.png is 3:2,
     and its visible pixels span 16.4%–74.3% of its width (the rest is
     transparent), with the head at roughly 30%–60%.
     ========================= *//* Row layout (781px and up). The memoji used to be sized by viewport height
   and pulled 250px left: it covered the headline at 781–1179px and hung off
   to the right elsewhere. Now the text column starts at the content column's
   left edge and the memoji's visible pixels end exactly at its right edge, so
   the hero is balanced. It fills the space beside the text, capped by height. */@media (min-width: 781px) {
    .big-hero-six .main-content-wrapper {
      --text-col: min(50vw, 640px);
      --memoji-w: min(calc((min(90vw, 1120px) - var(--text-col) - 32px) / 0.579), 82.5vh);
    }
    .big-hero-six .main-content-wrapper .content {
      flex: 0 0 var(--text-col);
      max-width: var(--text-col);
    }
    /* Negative margins tuck the transparent left/right parts of the PNG away,
       so the flex row lays out only the visible memoji; space-between then
       puts it flush with the column's right edge. */
    .big-hero-six .main-content-wrapper > .memoji {
      flex: 0 0 auto;
      width: var(--memoji-w);
      height: auto;
      right: 0;
      margin-left: calc(var(--memoji-w) * -0.164);
      margin-right: calc(var(--memoji-w) * -0.257);
    }
    /* Just above the head, as in the original desktop design. */
    .big-hero-six .hello-bubble {
      top: 40px;
      right: auto;
      left: calc(100% - var(--memoji-w) * 0.443 - 4px);
    }
  }/* Phones and portrait tablets (column layout). */@media (max-width: 780px) {
    /* The hero was a fixed 600px, so on tablets the memoji (60vw wide, drawn
       30px low) ran into the next section and was cut in half. Let it grow;
       the padding keeps the original small overlap with the wave. */
    .big-hero-six {
      height: auto;
      min-height: 600px;
      padding-bottom: 97px;
    }
    /* The bubble used a fixed right: 260px, which pushed it off-screen on
       phones and onto the headline on tablets. Anchor it to the memoji
       instead: just right of the head, level with the top of the hair. */
    /* The visible memoji sits 4.65% left of the PNG's centre: nudge it so the
       figure itself is centred. */
    .big-hero-six .main-content-wrapper > .memoji {
      left: 2.8vw;
    }
    .big-hero-six .hello-bubble {
      top: auto;
      right: auto;
      bottom: calc(36vw - 30px);
      left: calc(50% + 8.8vw + 4px);
    }
    /* Mirror the tail so it points back at the head. */
    .big-hero-six .hello-bubble .hello-text::before {
      right: auto;
      left: -16px;
      top: 85%;
    }
    .big-hero-six .hello-bubble .hello-text::after {
      right: auto;
      left: -30px;
      top: 140%;
    }
  }@media (max-width: 430px) {
    /* Not enough room beside the head on narrow phones: hug the right edge. */
    .big-hero-six .hello-bubble {
      left: auto;
      right: -2vw;
    }
  }.bingo {
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji;
  position: relative;
  z-index: 1;
  padding: 150px 0;
  background: #623862;
  color: #fff
}@media (max-width: 975px) {.bingo {
    z-index: 3
}
  }.bingo .tint-color {
    color: #FFA000;
    color: color(display-p3 1 0.675 0.229);
  }.bingo .wave-bottom {
    z-index: 1;
  }.bingo .wave-bottom path {
      fill: #fff;
    }.bingo .timestamp {
    left: 4px;
  }.bingo .external-link {
    color: #fff
  }.bingo .external-link:hover {
      border-color: #fff;
    }.bingo .main-content-wrapper {
    align-items: center;
    padding-bottom: 30px;
    max-height: 300px;
    margin-bottom: 100px;
    z-index: 2;
    top: -20px
  }@media (max-width: 975px) {

  .bingo .main-content-wrapper {
      flex-direction: column;
      align-items: center;
      min-height: 400px;
      margin-top: 0;
      margin-bottom: 140px
  }
    }.bingo .showcase {
    position: relative
  }@media (max-width: 975px) {

  .bingo .showcase {
      min-height: 200px;
      top: -70px;
      left: 75px
  }
    }.bingo .showcase .video-card {
      position: absolute;
      width: auto;
      height: auto;
      overflow: hidden;
      top: -100px;
      right: -200px;
      z-index: 9;
      transition: 0.3s cubic-bezier(.83, 0, .17, 1);
      transform: scale(0.8) rotate(2deg);
      box-shadow: 0px 4px 24px 2px rgba(14, 30, 37, 0.16);
    }.bingo .showcase .video-card video {
        position: relative;
        border-radius: 16px;
        width: 224px;
        transition: 0.3s cubic-bezier(.83, 0, .17, 1);
      }.bingo .card {
    position: absolute;
    width: auto;
    height: auto;
    overflow: hidden;
    background-size: cover;
    background-color: transparent
  }.bingo .card:nth-child(1) {
      top: -120px;
      left: -200px;
      height: 256px;
      width: 256px;
      border-radius: 22%;
      z-index: 99;
      transform: scale(0.8);
      box-shadow: 0px 4px 24px 2px rgba(14, 30, 37, 0.16);
    }.bingo .card:nth-child(1):hover {
        transform: scale(1) translateY(-16px);
      }.bingo .card:nth-child(1) {

      background-image: url(/assets/bingo-app-icon.png);
    }.bingo .card:nth-child(2) {
      top: -200px;
      left: -20px;
      height: 260px;
      width: 260px;
      z-index: 0;
      transform: scale(0.8) rotate(8deg);
      box-shadow: 0px 4px 24px 2px rgba(14, 30, 37, 0.16);
    }.bingo .card:nth-child(2):hover {
        transform: scale(1) translateY(-16px) rotate(0deg);
      }.bingo .card:nth-child(2) {

      background-image: url(/assets/bingo-map.png);
    }.bingo .card:nth-child(4) {
      top: -240px;
      left: -380px;
      height: 550px;
      width: 400px;
      z-index: 1;
      transform: scale(0.8) rotate(4deg);
      box-shadow: 0px 4px 24px 2px rgba(14, 30, 37, 0.16);
    }.bingo .card:nth-child(4):hover {
        transform: scale(1) translateY(-16px) rotate(0deg);
      }.bingo .card:nth-child(4) {

      background-image: url(/assets/bingo-poster.png);
    }/* === RESPONSIVE FIX FOR BINGO SECTION === */@media (max-width: 900px) {

  .bingo{
    padding: 0;
  }

  .bingo .main-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
    grid-gap: 20px;
    gap: 20px;
    max-height: none;
    margin-bottom: 60px;
  }

  .bingo .showcase {
    position: relative;
    margin-top: 30px;
    left: 0;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;

  }

  /* Hide all static cards */
  .bingo .showcase .card.depth-level-1,
  .bingo .showcase .card.depth-level-2,
  .bingo .showcase .card.depth-level-3 {
    display: none;
  }

  /* Show only the video card */
  .bingo .showcase .video-card {
    display: block;
    position: relative;
    top: 0;
    right: 0;
    transform: none;
    width: 90%;
    max-width: 360px;
    margin-top: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
  }

  .bingo .showcase .video-card video {
    width: 100%;
    height: auto;
    border-radius: 12px;
  }
}.art-detective {
  position: relative;
  z-index: 2;
  background: #fff;
  color: black
}@media (max-width: 975px) {.art-detective {
    z-index: 1
}
  }.art-detective .wave-bottom {
    z-index: 1;
  }.art-detective .wave-bottom path {
      fill: #1D1D1D;
    }.art-detective .tint-color {
    color: #1D1D1D;
  }.art-detective p, .art-detective a {
    border-color: rgba(198, 0, 0, 0.3)
  }.art-detective p:hover, .art-detective a:hover {
     border-color: rgba(198, 0, 0, 1);
    }.art-detective .external-link:hover {
    border-color: #1D1D1D;
  }.art-detective .showcaseMobile {
    display: none;
  }.art-detective .main-content-wrapper {
    align-items: center;
    padding: 60px 0 186px 0

  }@media (max-width: 975px) {

  .art-detective .main-content-wrapper {
      flex-direction: column;
      align-items: center;
      min-height: 400px;
      padding-bottom: 100px

  }
    }.art-detective .showcase {
    position: relative;
    margin-top: 40px;
    left: -20px;
    transform: scale(.8);
    transform-origin: top left;
    top: 100px;
    min-height: 460px;

  }.art-detective .card {
    position: absolute;
    width: auto;
    height: auto;
    overflow: hidden;
    background-size: cover;
    background-color: transparent
  }.art-detective .card:first-of-type {
      position: relative;
    }.art-detective .card:nth-child(1) {
      top: 80px;
      left: 140px;
      height: 316px;
      width: 500px;
      background-image: url(/assets/rijksmuseumMobile.png);
      background-size: auto 100%;
      background-repeat: no-repeat;
      background-position: center;

      transform: scale(1, 1) rotate(-2deg);
      box-shadow: none
    }.art-detective .card:nth-child(1):hover {
        transform: scale(1.1, 1.1) translateY(-36px) rotate(0deg);
      }.art-detective .card:nth-child(2) {
      width: 60%;
      top: -40px;
      left: 500px;
     }.art-detective .card:nth-child(3) {
      top: 150px;
      left: 600px;
      width: 250px;
      height: 350px;
      background-image: url(/assets/rijksmuseumScanning.png);
      background-size: auto 100%;
      background-repeat: no-repeat;
      background-position: center;
      z-index: 0;

      transform: scale(1, 1) rotate(-3deg);
      box-shadow: none
    }.art-detective .card:nth-child(3):hover {
        transform: scale(1.1, 1.1) translateY(-36px) rotate(0deg);
      }.art-detective .hero-card {
    box-shadow: none;
    transform: scale(1.1);
    height: 320px;
    width: 320px;
  }video {
  width: 100%;
}@media (max-width: 900px) {
  .showcaseMobile{
    display: flex !important;
    align-items: center;
    padding: 5%;
    margin-bottom: 2%;
  }

  .showcaseMobile img{
   width: 100%;
  border-radius: 15px;
  }

  .art-detective .showcase{
    display: none !important;
  }

  .art-detective .main-content-wrapper{ 
    height: -moz-fit-content; 
    height: fit-content;
    padding: 0;
  }

  .art-detective {
    padding-top: 0;
    padding-bottom: 100px;
  }

  }.trend-radar {
	font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji;
	position: relative;
	z-index: 1;
	background:#ef7b10;
	color: #fff;
}.trend-radar .tint-color {
		color: #fff;
	}.trend-radar .wave-bottom {
	z-index: 1;
  }.trend-radar .wave-bottom path {
		fill: #fff;
	}.trend-radar .external-link:hover {
	border-color: #fff;
  }.trend-radar .main-content-wrapper {
	align-items: center;
	padding-bottom: 100px;
	min-height: 730px;
	margin-top: -40px;
	z-index: 2
  }@media (max-width: 975px) {

  .trend-radar .main-content-wrapper {
	  flex-direction: column;
	  align-items: center;
	  min-height: 0
  }
	}@media (max-width: 469px) {

  .trend-radar .main-content-wrapper {
	  padding-bottom: 10px
  }
	}.trend-radar .viewport {
	  background-image: url(/assets/boobyTrack-screenshot.png);
	  background-size: cover;
  }.trend-radar .showcase {
	position: relative;
    margin-top: 40px;
    left: -20px;
    transform: scale(.8);
    transform-origin: top left;
    top: 100px;
    min-height: 460px;
  }.trend-radar .showcase .video-card {
		position: absolute;
		width: auto;
		height: auto;
		overflow: hidden;
		top: -104px;
		right: -350px;
		z-index: 2;
		border-radius: 56px;

		transform: scale(.8, .8) rotate(10deg);
		box-shadow: 0px 4px 24px 2px rgba(14, 30, 37, 0.16);
		z-index: 2
	}.trend-radar .showcase .video-card:hover {
			transform: scale(.8, .8) translateY(-16px) rotate(2deg);
		}.trend-radar .showcase .video-card video {
			position: relative;
			padding: 8px 8px 4px 8px;
			border-radius: 60px;
			width: 320px;
		}.trend-radar .card {
	  position: absolute;
	  background-size: cover
  }.trend-radar .card:nth-child(1) {
		  top: -200px;
		  right: -250px;
		  height: 400px;
		  width: 600px;
		  background-image: url(/assets/vanderlande-web.png);
		  background-color: transparent;
		}@media (max-width: 900px) {
	.showcaseMobile {
	  display: flex !important;
	  align-items: center;
	  justify-content: center;
	  padding: 5%;
	  margin-bottom: 2%;

	}
    .trend-radar .main-content-wrapper {
		justify-content: !important;
	}

	.showcaseMobile img {
	  width: 100%;
	  border-radius: 15px;
	}
  
	.trend-radar .showcase {
	  display: none !important;
	}
  
	.trend-radar .main-content-wrapper {
	  height: -moz-fit-content;
	  height: fit-content;
	  padding: 0;
	}
  
	.trend-radar {
	  padding-top: 0;
	  padding-bottom: 100px;
	  background: #ef7b10;
	  color: #fff;
	}
  }.live-stream {
	font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji;
  position: relative;
  z-index: 0;
  margin-top: 0px;
  background: #1D1D1D;
  color: #fff;
}.live-stream .tint-color {
	color: #fff;
  }.live-stream .wave-bottom {
	z-index: 1;
  }.live-stream .wave-bottom path {
		fill: #fff;
	}.live-stream .external-link:hover {
	border-color: #fff;
	border-color: #fff;
  }.live-stream .main-content-wrapper {
	align-items: center;
	padding-bottom: 30px;
	min-height: 0;
	min-height: 730px;
	margin-top: -40px;
	z-index: 2
  }@media (max-width: 975px) {

  .live-stream .main-content-wrapper {
	  flex-direction: column;
	  align-items: center;
	  margin-top: 64px
  }
	}@media (max-width: 469px) {

  .live-stream .main-content-wrapper {
	  padding-bottom: 10px
  }
	}.live-stream .showcase {
	position: relative
  }@media (max-width: 975px) {

  .live-stream .showcase {
		min-height: 200px;
		top: -70px;
		left: 75px
  }
	}.live-stream .showcase .video-card {
		position: absolute;
		width: 400px;
		height: auto;
		overflow: hidden;
		top: 0px;
   		right: -50px;
		z-index: 0;
	}.live-stream .showcase .video-card video {
			position: relative;
			border-radius: 16px;
			width: 100%;
		}.live-stream .showcase .video-card{

		transform: scale(.8, .8) rotate(-6deg);
	    box-shadow: 0px 4px 24px 2px rgba(14, 30, 37, 0.16);
}.live-stream .showcase .video-card:hover {
			transform: scale(1, 1) translateY(-16px) rotate(0deg);
		}.live-stream .card {
	  position: absolute;
	  width: auto;
	  height: auto;
	  background-size: cover;
	  background-color: transparent
  }.live-stream .card:nth-child(1) {
		top: -120px;
		left: -200px;
		height: 256px;
		width: 256px;
		border-radius: 22%;
		z-index: 99;

		transform: scale(.8, .8);
		box-shadow: 0px 4px 24px 2px rgba(14, 30, 37, 0.16)

	  }.live-stream .card:nth-child(1):hover {
		  transform: scale(1, 1) translateY(-16px);
		}.live-stream .card:nth-child(2) {
		  top: -280px;
		  left: -130px;
		  height: 260px;
		  width: 400px;
		  z-index: 3;

		  transform: scale(.8, .8) rotate(6deg);
		  box-shadow: 0px 4px 24px 2px rgba(14, 30, 37, 0.16);
		}.live-stream .card:nth-child(2):hover {
			transform: scale(1, 1) translateY(-16px) rotate(0deg);
		  }.live-stream .card:nth-child(2) {

		  background-image: url(/assets/live-stream.png);
		}.live-stream .card:nth-child(3) {
		  top: -240px;
		  left: -380px;
		  height: 330px;
		  width: 450px;
		  z-index: 3;

		  transform: scale(.8, .8) rotate(4deg);
		  box-shadow: 0px 4px 24px 2px rgba(14, 30, 37, 0.16);
		}.live-stream .card:nth-child(3):hover {
			transform: scale(1, 1) translateY(-16px) rotate(0deg);
		  }.live-stream .card:nth-child(3) {

		  background-image: url(/assets/judge-screen.png);
		}.live-stream .card:nth-child(4) {
		  top: -40px;
		  left: -100px;
		  height: 260px;
		  width: 400px;
		  z-index: 1;

		  transform: scale(.8, .8) rotate(10deg);
		  box-shadow: 0px 4px 24px 2px rgba(14, 30, 37, 0.16);
		}.live-stream .card:nth-child(4):hover {
			transform: scale(1, 1) translateY(-10px) rotate(0deg);
		  }.live-stream .card:nth-child(4) {

		  background-image: url(/assets/kumite-technology-announcements.png);
		}@media (max-width: 900px) {
	.showcaseMobile {
	  display: flex !important;
	  align-items: center;
	  justify-content: center;
	  padding: 5%;
	  margin-bottom: 2%;
	}
  
	.showcaseMobile img {
	  width: 100%;
	  border-radius: 15px;
	}
  
	.live-stream .showcase {
	  display: none !important;
	}
  
	.live-stream .main-content-wrapper {
	  height: -moz-fit-content;
	  height: fit-content;
	  padding: 0;
	}
  
	.live-stream {
	  padding-top: 0;
	  padding-bottom: 100px;
	  background: #060606;
	  color: #fff;
	}
  }.polarization {
  position: relative;
  z-index: 2;
  background: #fff;
  color: #2F2B36
}@media (max-width: 975px) {.polarization {
    z-index: 1
}
  }.polarization .wave-bottom {
    z-index: 1;
  }.polarization .wave-bottom path {
      fill: #ef7b10;
    }.polarization .tint-color {
    color: black;
  }.polarization .external-link:hover {
    border-color: #2F2B36;
  }.polarization .main-content-wrapper {
    align-items: center;
    padding: 60px 0 186px 0
  }@media (max-width: 975px) {

  .polarization .main-content-wrapper {
      flex-direction: column;
      align-items: center;
      min-height: 400px;
      padding-bottom: 100px
  }
    }@media (max-width: 780px) {

  .polarization .main-content-wrapper {
      align-items: flex-start
  }
    }@media (max-width: 469px) {

  .polarization .main-content-wrapper {
      min-height: 500px;
      padding-bottom: 10px
  }
    }.polarization .showcase {
    position: relative;
    margin-top: 40px;
    left: -20px;
    transform: scale(.8);
    transform-origin: top left;
    top: 100px;
    min-height: 460px
  }@media (min-width: 475px) {

  .polarization .showcase {
      transform: scale(0.9);
      top: 20px;
      left: -100px;
      min-height: auto
  }
    }@media (min-width: 975px) {

  .polarization .showcase {
      transform: scale(1, 1);
      top: -70px
  }
    }.polarization .showcase .video-card {
      position: absolute;
      width: auto;
      right:-300px;
      height: auto;
      overflow: hidden;
      top: 0px;
      z-index: 3;

      transform: scale(1.3, 1.3) rotate(3deg);
      box-shadow: 0px 4px 24px 2px rgba(14, 30, 37, 0.16)
    }.polarization .showcase .video-card:hover {
        transform: scale(1.4, 1.4) translateY(-16px) rotate(2deg);
      }.polarization .showcase .video-card video {
        position: relative;
        padding: 8px 8px 4px 8px;
        border-radius: 16px;
        width: 350px;
      }.polarization .card {
    position: absolute;
    width: auto;
    height: auto;
    overflow: hidden;
    background-size: cover;
    background-color: transparent
  }.polarization .card:first-of-type {
      position: relative;
    }.polarization .card:nth-child(1) {
      top: 200px;
      right: -300px;
      height: 250px;
      width: 350px;
      background-image: url(/assets/polarizationCAD.png);
      background-size: auto 1;
      background-repeat: no-repeat;
      background-position: center;
      border-radius: 16px;
      transform: scale(1, 1) rotate(4deg);
      box-shadow: none;
      z-index: 4
    }.polarization .card:nth-child(1):hover {
        transform: scale(1.1, 1.1) translateY(-16px) rotate(0deg);
      }.polarization .card:nth-child(2) {
        top: -80px;
        left: 0px;
        height: 400px;
        width: 300px;
        z-index: 0;
  
        transform: scale(.8, .8) rotate(-6deg);
        box-shadow: 0px 4px 24px 2px rgba(14, 30, 37, 0.16);
      }.polarization .card:nth-child(2):hover {
        transform: scale(1, 1) translateY(-16px) rotate(0deg);
        }.polarization .card:nth-child(2) {
  
        background-image: url(/assets/polarization-user-test.jpg);
      }.polarization .card:nth-child(3) {
        top: 200px;
        left: 0px;
        height: 260px;
        width: 400px;
  
        transform: scale(.8, .8) rotate(-8deg);
        box-shadow: 0px 4px 24px 2px rgba(14, 30, 37, 0.16);
      }.polarization .card:nth-child(3):hover {
        transform: scale(1, 1) translateY(-16px) rotate(0deg);
        }.polarization .card:nth-child(3) {
  
        background-image: url(/assets/polarization-3d-model.jpg);
      }.polarization .hero-card {
    box-shadow: none;
    transform: scale(1);
    height: 320px;
    width: 320px;
  }@media (max-width: 900px) {
  .showcaseMobile {
    display: flex !important;
    align-items: center;
    padding: 5%;
    margin-bottom: 2%;
  }

  .showcaseMobile img {
    width: 100%;
    border-radius: 15px;
  }

  .polarization .showcase {
    display: none !important;
  }

  .polarization .main-content-wrapper {
    height: -moz-fit-content;
    height: fit-content;
    padding: 0;
  }

  .polarization {
    padding-top: 0;
    padding-bottom: 100px;
    background: #fff;
    color: #2F2B36;
  }
}/**
 * @license
 * MyFonts Webfont Build ID 4175828, 2021-09-04T14:05:27-0400
 *
 * The fonts listed in this notice are subject to the End User License
 * Agreement(s) entered into by the website owner. All other parties are
 * explicitly restricted from using the Licensed Webfonts(s).
 *
 * You may obtain a valid license at the URLs below.
 *
 * Webfont: MyriadPro-Regular by Adobe
 * URL: https://www.myfonts.com/fonts/adobe/myriad/regular/
 *
 * Webfont: MyriadPro-Semibold by Adobe
 * URL: https://www.myfonts.com/fonts/adobe/myriad/semibold/
 *
 *
 * Webfonts copyright: © 1992, 1994, 1997, 2000, 2004 Adobe Systems Incorporated. All rights reserved.
 *
 * © 2021 MyFonts Inc
*/@font-face {
  font-family: "MyriadPro-Semibold";
  src: url('../assets/fonts/MyriadProSemibold/font.woff2') format('woff2'), url('../assets/fonts/MyriadProSemibold/font.woff') format('woff');
}@font-face {
  font-family: "MyriadPro-Regular";
  src: url('../assets/fonts/MyriadProRegular/font.woff2') format('woff2'), url('../assets/fonts/MyriadProRegular/font.woff') format('woff');
}main {
  margin-bottom: 5%;
}.project-page {
    background: #1d1d1d;
    color: #fff;
    font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif;
    overflow-x: hidden;
  }.project-page a {
    color: #fff;
  }/* Header *//* ------------------------------
   MINIMAL APPLE-STYLE HEADER
------------------------------ */.project-header-minimal {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(29, 29, 29, 0.85); /* slightly transparent for a modern feel */
  backdrop-filter: blur(16px); /* adds soft glassy Apple-like effect */
  -webkit-backdrop-filter: blur(16px);
  padding: 20px 0;
  transition: background 0.3s ease;
}.project-header-inner {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}.project-title {
  font-size: 22px;
  font-weight: 500;
  color: #fff;
  padding-right: 5%;
  letter-spacing: -0.3px;
  text-align: center;
  flex: 1;
}.text-block{
  max-width: 900px;
}.project-home-link {
  color: #aaa;
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  transition: color 0.3s ease;
}.project-home-link:hover {
  color: #fff;
}/* Adjust spacing on smaller devices */@media (max-width: 768px) {
  .project-header-inner {
    flex-direction: column;
    grid-gap: 10px;
    gap: 10px;
  }

  .project-title {
    font-size: 20px;
  }

  .project-home-link {
    font-size: 15px;
  }
}.project-title {
    font-size: 28px;
    font-weight: 600;
  }.project-home-link {
    color: #f0d8fd;
    text-decoration: none;
    font-weight: 500;
  }.project-home-link:hover {
    text-decoration: underline;
  }/* Hero / Intro Section */.project-hero-section {
    position: relative;
    background: #623862;
    color: #fff;
    height:850px;
    overflow: hidden;
  }.hero-content-wrapper {
    padding-top: 8%;
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    grid-gap: 60px;
    gap: 60px;
  }.hero-text {
    flex: 1;
    max-width: 450px;
  }.hero-text h2 {
    font-size: 42px;
    margin-bottom: 20px;
  }.hero-showcase {
    position: relative;
    flex: 1;
    min-height: 400px;
  }.hero-showcase .card,
  .hero-showcase .video-card {
    position: absolute;
    box-shadow: 0px 4px 24px 2px rgba(14, 30, 37, 0.16);
    transform: scale(.8) rotate(2deg);
    transition: transform 0.3s ease;
  }.hero-showcase .card:hover,
  .hero-showcase .video-card:hover {
    transform: scale(1) translateY(-16px) rotate(0deg);
  }.hero-showcase .card {
    background-size: cover;
    background-position: center;
  }.hero-showcase .depth-1 {
    top: 70px;
    right: 0px;
    width: 220px;
    height: 220px;
    transform: scale(.8, .8) rotate(-5deg);
    z-index: 5;
}.hero-showcase .depth-2 {
    top: 250px;
    left: 300px;
    width: 240px;
    height: 240px;
    z-index: 2;
    transform: scale(.8, .8) rotate(-8deg);
}.hero-showcase .depth-3 {
    top: -100px;
    left: 240px;
    width: 300px;
    height: 400px;
    transform: scale(.8, .8) rotate(2deg);
  }.hero-showcase .video-card {
    top: -50px;
    right: -150px;
    width: 260px;
    transform: scale(.8, .8) rotate(3deg);
  }.hero-showcase .video-card video {
    border-radius: 35px;
    width: 100%;
  }.wave-bottom {position: absolute;}.wave-bottom path {
    fill: #1d1d1d;
  }/* Phases */.project-section {
    padding: 0px 0 5% 0;
    text-align: center;
  }.project-section#first {
    padding: 2% 0 5% 0;
    text-align: center;
  }.project-container {
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
  }.project-phase {
    display: block;
    font-size: 14px;
    opacity: 0.6;
    text-transform: uppercase;
  }.project-container h2 {
    font-size: 44px;
    margin-bottom: 20px;
  }.project-container p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 40px;
  }.project-media {
    width: 90%;
    max-width: 700px;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
  }.project-media:hover {
    transform: scale(1.02);
  }/* Footer */.project-footer {
    background: #000;
    padding: 40px 20px;
    display: flex;
    justify-content: end;
    align-items: center;
  }.project-footer-link {
    color: #f0d8fd;
    text-decoration: none;
    display: flex;
    align-items: center;
    grid-gap: 16px;
    gap: 16px;
    font-weight: 500;
    transition: opacity 0.3s;
  }.project-footer-link:hover {
    opacity: 0.8;
  }.project-footer-link img {
    width: 80px;
    height: 60px;
    border-radius: 12px;
    -o-object-fit: cover;
       object-fit: cover;
  }@media (max-width: 975px) {
    .hero-content-wrapper {
      flex-direction: column;
      align-items: center;
    }
    .hero-showcase {
      margin-top: 40px;
    }
  }/* ------------------------------
   QR INTEGRATION SECTION
------------------------------ */.qr-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    grid-gap: 60px;
    gap: 60px;
    text-align: left;
    flex-wrap: wrap;
  }.qr-media {
    flex: 1;
    display: flex;
    justify-content: center;
  }.project-wrapper video {
    width: 70%;
    max-width: 500px;
    border-radius: 50px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s 
ease;
}.qr-media video:hover {
    transform: scale(1.02);
  }.qr-text {
    flex: 1;
    max-width: 480px;
  }.qr-text h2 {
    font-size: 44px;
    margin-bottom: 20px;
    text-align: left;
  }.qr-text p {
    font-size: 18px;
    line-height: 1.6;
  }/* Responsive */@media (max-width: 900px) {
    .qr-layout {
      flex-direction: column;
      text-align: center;
    }
    .qr-text h2,
    .qr-text p {
      text-align: center;
    }
    .qr-media video {
      max-width: 90%;
    }
  }/* ------------------------------
   ANIMATION INTEGRATION
------------------------------ */.animation-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    grid-gap: 60px;
    gap: 60px;
    flex-wrap: wrap;
    text-align: left;
  }.animation-text {
    flex: 1;
    max-width: 480px;
  }.animation-media {
    flex: 1;
    display: flex;
    justify-content: center;
  }.animation-media video {
    width: 70%;
    max-width: 500px;
    border-radius: 35px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
  }.animation-media video:hover {
    transform: scale(1.02);
  }/* ------------------------------
     FINAL PRODUCT SECTION
  ------------------------------ */.final-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    grid-gap: 60px;
    gap: 60px;
    flex-wrap: wrap;
    text-align: left;
  }.final-media {
    flex: 1;
    display: flex;
    justify-content: center;
  }.final-media video {
    width: 70%;
    max-width: 500px;
    border-radius: 40px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s 
ease;
}.final-media video:hover {
    transform: scale(1.02);
  }.final-text {
    flex: 1;
    max-width: 480px;
  }/* Responsive Layouts */@media (max-width: 900px) {
    .animation-layout,
    .final-layout {
      flex-direction: column;
      text-align: center;
    }
  
    .animation-text,
    .final-text {
      text-align: center;
    }
  
    .animation-media video,
    .final-media video {
      max-width: 90%;
    }
  }/* -----------------------------------------
   ART DETECTIVE HERO SECTION
----------------------------------------- */.art-detective-hero {
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif;
  position: relative;
  z-index: 1;
  padding: 150px 0;
  background: #fff;
  color: #1d1d1d;
}.art-detective-hero .tint-color {
  color: #e0b8ff;
}.art-detective-hero .wave-bottom path {
  fill: #1d1d1d;
}.art-detective-hero .main-content-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  grid-gap: 80px;
  gap: 80px;
  padding: 0 5%;
  flex-wrap: wrap;
}.art-detective-hero .content {
  flex: 1 1 45%;
}.art-detective-hero .content h2 {
  font-size: 48px;
  margin-bottom: 24px;
}.art-detective-hero .content p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 16px;
}.art-detective-hero .external-link {
  color: #1d1d1d;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}.art-detective-hero .external-link:hover {
  border-color: #e0b8ff;
}.art-detective-hero .showcase {
  flex: 1 1 45%;
  display: flex;
  justify-content: center;
}.art-detective-hero .hero-image {
  width: 100%;
  max-width: 500px;
  border-radius: 16px;
  box-shadow: 0px 4px 24px rgba(14, 30, 37, 0.3);
  transition: transform 0.3s ease;
}@media (max-width: 975px) {
  .art-detective-hero .main-content-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .art-detective-hero .content {
    flex: 1 1 100%;
  }

  .art-detective-hero .hero-image {
    max-width: 340px;
    margin-top: 40px;
  }

  .art-detective-hero .content h2 {
    font-size: 36px;
  }
}/* ------------------------------
   PROJECT FOOTER
------------------------------ */.project-footer {
  background: #000;
  padding: 2% 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: center;
}.project-footer-link {
  color: #f0d8fd;
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  grid-gap: 16px;
  gap: 16px;
  transition: opacity 0.3s ease;
}.project-footer-link:hover {
  opacity: 0.8;
}.footer-arrow {
  font-size: 28px;
  font-weight: bold;
  color: #f0d8fd;
}.footer-image-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}.footer-image-wrapper img {
  width: 100px;
  height: 80px;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 12px;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.4);
}.footer-project-name {
  margin-top: 8px;
  font-size: 16px;
  color: #fff;
  font-weight: 500;
}.project-footer-link.left {
  flex-direction: row-reverse;
}.project-footer-link.left .footer-arrow {
  order: 2;
}@media (max-width: 768px) {
  .project-footer {
    flex-direction: row;
    grid-gap: 30px;
    gap: 30px;
  }
  .live-stream-hero .main-content-wrapper {
    display: flex;
   justify-content: center;
   flex-direction: column;
   padding-bottom: 10%;
 }
}.live-stream-hero{
  background-color: #000;
  height: 80vh;
}.live-stream-hero .wave-bottom {
  position: absolute;
  bottom: 0;
}.live-stream-hero .showcase img {
width: 100%;
transition: transform 0.3s 
ease;
}.live-stream-hero .showcase img:hover {
  transform: scale(1.05);
}.live-stream-hero .main-content-wrapper{
  margin: 5% 5% 5% 5%;
}/* ---------------------------------
   POLARIZATION HERO
---------------------------------- */.polarization-hero {
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif;
  position: relative;
  padding: 0% 5% 5% 5%;
  background: white;
  color: #1d1d1d;
  height: 75vh;
}section#first-polarization{
  padding-top: 3%;
}.polarization-hero .main-content-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  grid-gap: 80px;
  gap: 80px;
}.polarization-hero .hero-image {
  width: 480px;
  border-radius: 16px;
  box-shadow: 0px 4px 24px rgba(0,0,0,0.4);
}/* FLEX LAYOUT FOR DEFINE PHASE */.project-flex {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  grid-gap: 40px;
  gap: 40px;
  flex-wrap: wrap;
}/* FLOATING CARDS (for brainstorming & testing) */.floating-cards {
    position: relative;
    margin: 16% 10%;
    padding-bottom:5% ;
}.floating-cards .card {
  position: absolute;
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  box-shadow: 0px 4px 24px rgba(0,0,0,0.3);
  transition: transform 0.4s ease;
}.floating-cards .card:hover {
  transform: scale(1.03) translateY(-10px);
}.floating-cards .depth-level-1 {
  top: -80px;
  left: 0;
  width: 260px;
  height: 180px;
  transform: rotate(-6deg);
}.floating-cards .depth-level-2 {
  top: -40px;
  left: 220px;
  width: 280px;
  height: 200px;
  transform: rotate(4deg);
}.floating-cards .depth-level-3 {
  top: -100px;
  left: 480px;
  width: 300px;
  height: 220px;
  transform: rotate(-3deg);
}.floating-cards .depth-level-4 {
  top: -20px;
  left: 700px;
  width: 300px;
  height: 200px;
  transform: rotate(5deg);
}@media (max-width: 900px) {
  .floating-cards {
    height: auto;
  }
}/* --- HERO RESPONSIVE --- */@media (max-width: 1024px) {
  .polarization-hero {
    height: auto;
    padding: 10% 5%;
  }

  .polarization-hero .main-content-wrapper {
    flex-direction: column;
    text-align: center;
    grid-gap: 40px;
    gap: 40px;
  }

  .polarization-hero .content {
    max-width: 100%;
  }

  .polarization-hero .hero-image {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }
}/* --- BRAINSTORMING / FLOATING CARDS RESPONSIVE --- */@media (max-width: 900px) {
  .floating-cards {
    position: static;
    margin: 40px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    grid-gap: 24px;
    gap: 24px;
  }

  .floating-cards .card {
    position: static;
    width: 90%;
    max-width: 380px;
    height: auto;
    aspect-ratio: 16 / 10;
    transform: none !important;
  }

  .floating-cards .card:hover {
    transform: scale(1.02);
  }
}@media (max-width: 600px) {
  .polarization-hero .content h2 {
    font-size: 1.8rem;
  }

  .polarization-hero .content p {
    font-size: 1rem;
    line-height: 1.5;
  }

  .floating-cards {
    grid-gap: 20px;
    gap: 20px;
  }

  .floating-cards .card {
    max-width: 320px;
  }
}/* Trend radar code */.hero-flex {
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
  grid-gap: 60px;
  gap: 60px;
}.hero-flex img{
  width: 150%;
}.project-section#trend-radar{
  background-color: #ef7b12;
}.project-section#trend-radar{
  padding-top: 5%;
}.project-section#trend-radar .wave-bottom{
position: relative;
bottom: -100px;
}.project-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  grid-gap: 30px;
  gap: 30px;
}.image-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  grid-gap: 20px;
  gap: 20px;
  margin-top: 40px;
}.iteration-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  grid-gap: 20px;
  gap: 20px;
  margin-top: 40px;
}.iteration-row img{
  width: 40%;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}.image-row img {
  width: 40%;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}.project-media {
  width: 100%;
  max-width: 480px;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}/* Tablet layout */@media (max-width: 1024px) {
  .hero-flex {
    flex-direction: column;
    text-align: center;
    grid-gap: 40px;
    gap: 40px;
  }

  .hero-flex .text-block {
    max-width: 100%;
  }

  .hero-flex .media-block img {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
  }

  .project-section#trend-radar {
    padding: 10% 5%;
  }
}/* Mobile layout */@media (max-width: 600px) {
  .hero-flex .text-block h2 {
    font-size: 1.8rem;
  }

.hero-showcase .video-card {
    top: -100px;
    right: -200px;
    width: 200px;
    transform: scale(.8, .8) rotate(3deg);
}
  .hero-flex .text-block p {
    font-size: 1rem;
    line-height: 1.5;
  }

  .hero-flex {
    grid-gap: 32px;
    gap: 32px;
  }

  .hero-flex .media-block img {
    max-width: 320px;
  }

  .project-section#trend-radar {
    padding-bottom: 100px;
  }
  .project-section#trend-radar .wave-bottom {
      position: absolute;
      bottom: 70px;
      right: 0px;
  }
}.pdf-popup {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
}.pdf-popup-content {
  position: relative;
  width: 90%;
  max-width: 900px;
  height: 85%;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.6);
}.pdf-popup iframe {
  width: 100%;
  height: 100%;
  border: none;
}.close-popup {
  position: absolute;
  top: 10px;
  right: 20px;
  color: #000;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10000;
}@media (max-width: 600px) {
  .pdf-popup-content {
    width: 95%;
    height: 80%;
  }
}.miscelanious-is-a-funny-word {
  background: #fff;
  position: relative;
  flex-direction: column;
  z-index: 1;
}.miscelanious-is-a-funny-word p {
    margin-top: 8px;
  }.miscelanious-is-a-funny-word .main-content-wrapper {
    align-items: center;
    padding-bottom: 30px;
    padding-top: 30px;
  }.miscelanious-is-a-funny-word .content {
    max-width: 100%;
  }.miscelanious-is-a-funny-word ul {
    list-style-type: none;
    padding: 0;
    margin: 40px 0 0 0;
  }.miscelanious-is-a-funny-word .flexing-like-a-douche {
    display: flex;
    align-items: center;
  }.miscelanious-is-a-funny-word .detail {
    width: 40px;
    height: 40px;
    margin-right: 16px;
    padding-top: 4px;
  }.miscelanious-is-a-funny-word .detail img {
      width: 100%;
    }.miscelanious-is-a-funny-word .wrapper p {
    margin: 0;
  }.people-id-like-to-meet ul {
    -moz-column-count: 5;
         column-count: 5;
    -moz-column-width: 190px;
         column-width: 190px;
  }.people-id-like-to-meet .tick {
    display: block;
    box-sizing: content-box;
    height: 18px;
    width: 18px;
    border: 2px solid #0E1E25;
    border-radius: 4px;
    margin-right: 8px;
  }.people-id-like-to-meet .checked .tick {
    border: 2px solid #219653;
    border: 2px solid color(display-p3 0.056 0.567 0.169);
    background: rgba(33, 150, 83, 0.17);
    background: color(display-p3 0.086 0.578 0.195 / 0.17);
    background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTEiIGhlaWdodD0iOSIgdmlld0JveD0iMCAwIDExIDkiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTQuMTMzMDUgNC43ODUxNUwyLjQ4MDYgMy4xMzI3QzEuOTEzMTMgMi41NjUyMiAwLjk5MzA3NiAyLjU2NTIyIDAuNDI1NjA0IDMuMTMyN0MtMC4xNDE4NjggMy43MDAxNyAtMC4xNDE4NjggNC42MjAyMiAwLjQyNTYwNCA1LjE4NzY5TDMuMDc5NzQgNy44NDE4MkMzLjQ2MjQ2IDguMjI0NTUgNC4wMDU1NiA4LjM0OTE1IDQuNDkyNzEgOC4yMTU2M0M0Ljc1MzE2IDguMTU3NzEgNS4wMDA3NiA4LjAyNzQzIDUuMjAzNDEgNy44MjQ3OUwxMC41NDc2IDIuNDgwNkMxMS4xMTUxIDEuOTEzMTMgMTEuMTE1MSAwLjk5MzA3NiAxMC41NDc2IDAuNDI1NjA0QzkuOTgwMTIgLTAuMTQxODY4IDkuMDYwMDcgLTAuMTQxODY4IDguNDkyNiAwLjQyNTYwNEw0LjEzMzA1IDQuNzg1MTVaIiBmaWxsPSIjMjE5NjUzIi8+PC9zdmc+);
    background-repeat: no-repeat;
    background-position: 4px 5px;
  }.people-id-like-to-meet .checked a {
    color: #219653;
    color: color(display-p3 0.056 0.567 0.169);
  }.people-id-like-to-meet li {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    margin-right: -8px;
  }.people-id-like-to-meet li a {
    font-size: 18px;
    color: #0E1E25;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 2px solid #fff;
    padding-top: 2px
  }.people-id-like-to-meet li a:hover {
      border-bottom: 2px solid #219653;
      border-bottom: 2px solid color(display-p3 0.056 0.567 0.169);
    }.people-id-like-to-meet .people-at-wwdc {
    background: #F9FAFB;
    border-radius: 16px;
    padding: 24px;
    margin: 40px -16px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
    border: 0.5px solid #ddd;
  }.people-id-like-to-meet .people-at-wwdc h3 {
      font-size: 20px;
    }.people-id-like-to-meet .people-at-wwdc li a {
      border-bottom: 2px solid #F9FAFB
    }.people-id-like-to-meet .people-at-wwdc li a:hover {
        border-bottom: 2px solid #219653;
        border-bottom: 2px solid color(display-p3 0.056 0.567 0.169);
      }.miscelanious-is-a-funny-word {
  /* min-height, not height: a fixed 500px clipped the footer and left
     22–81px of hidden overflow, which is what made the page scroll stick. */
  min-height: 500px;
}.miscelanious-is-a-funny-word .main-content-wrapper.social {
  padding-top: 5%;
}.miscelanious-is-a-funny-word .main-content-wrapper.footer {
  display: block;
  min-height: 0px;
}.miscelanious-is-a-funny-word .main-content-wrapper.footer p {
    font-size: 14px;
    margin-bottom: 4px;
  }.in-the-year-2000 .flexing-like-a-douche,
.social .flexing-like-a-douche {
  display: flex;
  align-items: flex-start;
}.in-the-year-2000 .flexing-like-a-douche .detail, .social .flexing-like-a-douche .detail {
    flex-basis: 40px;
  }.in-the-year-2000 .flexing-like-a-douche .wrapper, .social .flexing-like-a-douche .wrapper {
    flex-basis: 95%;
  }.in-the-year-2000 li,
.social li {
  display: block;
  position: relative;
  padding: 8px;
  margin-top: -8px;
  margin-left: -8px;
  border-radius: 4px;
  margin-bottom: 24px
}.in-the-year-2000 li:hover, .social li:hover {
    background: rgba(0, 179, 229, .1);
    cursor: pointer;
  }.in-the-year-2000 li .whole-thang-is-a-target, .social li .whole-thang-is-a-target {
    position: absolute;
    top: 0;
    left: 0;
  }.in-the-year-2000 .frames:hover {      background: rgba(059, 191, 248, .1); }.in-the-year-2000 .sketchcasts:hover { background: rgba(069, 116, 174, .1); }.in-the-year-2000 .talks:hover {       background: rgba(010, 158, 251, .1); }.social .twitter:hover {               background: rgba(097, 159, 230, .1); }.social .mastodon:hover {              background: rgba(040, 044, 055, .1); }.social .letterboxd:hover {            background: rgba(040, 044, 055, .1); }.social .dribbble:hover {              background: rgba(176, 092, 131, .1); }.social .github:hover {                background: rgba(023, 021, 022, .1); }.social .apple-music:hover {           background: rgba(213, 110, 125, .1); }.social .strava:hover {                background: rgba(219, 098, 058, .1); }.social .psn:hover,
.social .switch:hover {
  background: white;
  cursor: auto;
}.dribbble img {
    border-radius: 999px;
  }:root {
  --rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji;
}* {
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
}body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  color: #0e1e25;
  font-size: 18px;
  margin: 0;
  background: #f7fafb;
}h1 {
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji;
  font-family: var(--rounded);
  font-size: 72px;
  font-weight: 900;
  margin: 0;
}h2 {
  font-size: 52px;
  font-weight: bold;
  margin: 0
}@media (max-width: 520px) {h2 { font-size: 42px
} }h3 {
  font-size: 36px;
  margin: 0
}@media (max-width: 520px) {h3 { font-size: 28px
} }h4 {
  font-weight: 600;
  margin: 0 0 4px 0;
}p {
  margin-top: 16px;
  opacity: .7;
  line-height: 1.4em;
}p a {
  display: inline-block;
  color: inherit;
  text-decoration: none;
  border-bottom: 2px solid rgba(0, 179, 229, 0.3)
}p a:hover {
    border-color: rgba(0, 179, 229, 1);
  }a.external-link {
  display: inline-block;
  font-weight: 500;
  text-decoration: none;
  margin-top: 8px;
  border-bottom: 2px solid rgba(0, 179, 229, 0)
}a.external-link::after {
    content: "→";
    position: absolute;
    margin-left: 4px;
  }a.external-link:hover {
    border-color: rgba(0, 179, 229, 1);
  }.timestamp {
  position: relative;
  bottom: -8px;
  font-size: 14px;
  opacity: 0.4;
  margin: 0 0 -8px 2px ;
  font-weight: 500;
}.whole-thang-is-a-target {
  display: block;
  height: 100%;
  width: 100%;
  text-decoration: none;
}.ninja-links {
  color: inherit;
  text-decoration: none;
  border: none;
}.ninja-links:hover {
  cursor: text;
}.papa-wrapper {
  /* 100% (not 100vw) so the page is never wider than the viewport's
     scrollbar-less width. `clip` cuts off the oversized waves without turning
     this wrapper into a second scroll container (`hidden` did, which made
     wheel/touch scrolling stick while the wrapper scrolled instead of the page). */
  width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}.wave {
  display: block;
  position: absolute;
  z-index: 9;
  width: 100vw;
  min-width: 1400px;
  height: auto;
}.wave-bottom {
  bottom: -8px;
}.wave-top {
  top: -75px;
}.card {
  display: block;
  position: relative;
  width: 480px;
  height: 360px;
  background: #fff;
  border-radius: 16px;

  transition: transform 0.3s cubic-bezier(.83, 0, .17, 1);
}.not-actually-a-card {
  transition: transform 0.3s cubic-bezier(.83, 0, .17, 1);
}.depth-level-1 {
  box-shadow: 0px 4px 34px 2px rgba(14, 30, 37, 0.16);
  z-index: 3
}.depth-level-1:hover {
    transform: translateY(-16px);
  }.depth-level-2 {
  transform: scale(.8, .8);
  box-shadow: 0px 4px 24px 2px rgba(14, 30, 37, 0.16);
  z-index: 2
}.depth-level-2:hover {
    transform: scale(.8, .8) translateY(-16px);
  }.depth-level-3 {
  transform: scale(.7, .7);
  box-shadow: 0px 4px 14px 2px rgba(14, 30, 37, 0.16);
  z-index: 1
}.depth-level-3:hover {
    transform: scale(.7, .7) translateY(-16px);
  }.main-content-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  position: relative;
  width: 90%;
  max-width: 1120px;
  margin: auto;
  z-index: 2;
}.content {
  max-width: 600px;
  z-index: 999;
}.background {
  display: block;
  position: absolute;
  bottom: 0;
  z-index: 1;
}.section {
  position: relative;
  display: flex;
  justify-content: center;
}#easterNope {
  z-index: 999;
  position: fixed;
  left: -280px;
  top: 50%;
  height: 200px;
  animation-fill-mode: forwards;
}.popin {
  animation: 1s popin cubic-bezier(0.770, 0.000, 0.175, 1.000);
}.popout {
  animation: 1s popout cubic-bezier(0.770, 0.000, 0.175, 1.000);
}@keyframes popin {
  from { left: -280px; }
  to {left: 0;}
}@keyframes popout {
  from { left: 0px; }
  to {left: -280px;}
}.hide {
  display: none;
}video {
  pointer-events: none;
}video::-webkit-media-controls-panel {
  display: none !important;
  opacity: 1 !important;
}footer#main{
  padding: 3%;
  font-size: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-color: #f0f0f0;
}.showcaseMobile {
  display: none;
}
/* =========================================================
   DESIGN FIXES (audit, Nov 2026)
   ========================================================= */

/* Text that is read by screen readers but not shown. */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Visible keyboard focus. currentColor already contrasts with each
   section's background, because the text does. */
.papa-wrapper a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
  border-radius: 2px;
}
/* Links that cover a whole card sit on images and inside clipped cards:
   draw a two-tone ring on the inside so it shows on any background. */
.papa-wrapper .whole-thang-is-a-target:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -3px;
  box-shadow: inset 0 0 0 6px #1d1d1d;
  border-radius: inherit;
}

/* Project labels ("University Project") were at 40% opacity: 2.3–3.8:1.
   70% matches body text and clears 4.5:1 on every section background. */
.timestamp {
  opacity: .7;
}

/* Trend Radar: white on #ef7b10 is 2.8:1 (body text at 70% was 2.1:1).
   Keep the orange and switch to dark text: 6:1 for headings and links,
   5.2:1 for body text, 4.8:1 for the label. */
.trend-radar,
.trend-radar .tint-color {
  color: #1d1d1d;
}
.trend-radar p {
  opacity: .9;
}
.trend-radar .timestamp {
  opacity: .85;
}
.trend-radar .external-link:hover {
  border-color: #1d1d1d;
}

/* Footer text sat 11px from the screen edge on phones. */
footer#main {
  padding: max(3%, 24px) max(3%, 16px);
  text-align: center;
}

/* Centred layout ------------------------------------------------------- */

/* Stacked project sections (tablets and phones): centre the text block and
   its text, like the images below it. Polarization was left-aligned while
   the others were centred, which made the page look shifted. */
@media (max-width: 975px) {
  .section:not(.big-hero-six):not(.miscelanious-is-a-funny-word) .main-content-wrapper > .content {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
  .polarization .main-content-wrapper {
    align-items: center;
  }
}

/* Stacked hero (phones and portrait tablets). */
@media (max-width: 780px) {
  .big-hero-six .main-content-wrapper .content {
    text-align: center;
  }
  .big-hero-six p:first-of-type,
  .big-hero-six p:last-of-type {
    left: 0;
  }
}

/* Even out line lengths so centred text doesn't end on one lonely word
   (progressive enhancement: ignored by browsers that don't support it). */
.papa-wrapper p {
  text-wrap: pretty;
}
.papa-wrapper h1,
.papa-wrapper h2,
.papa-wrapper h3,
.big-hero-six p {
  text-wrap: balance;
}

/* Hero text: one-line headline, quieter tagline, clear spacing ---------- */

/* "I am a UX/UI engineer" stays on one line: the font size follows the text
   column. The line is ~9.7em wide in SF Pro (Apple) and ~10.2em in
   Arial/Helvetica (Windows, Android); dividing by 10.6 leaves headroom. */
.big-hero-six h1 {
  margin: 8px 0 0;
  font-size: min(4.7vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
@media (max-width: 780px) {
  .big-hero-six h1 {
    font-size: min(8.3vw, 60px);
  }
}
/* Supporting line: lighter and smaller, so the headline leads. */
.big-hero-six h1 .hero-tagline {
  margin-top: 12px;
  font-size: clamp(18px, 1.9vw, 26px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0;
  opacity: .72;
}
/* Detail line: its own step, 24px below the tagline. */
.big-hero-six .main-content-wrapper .content p:last-of-type {
  top: 0;
  margin-top: 24px;
  font-size: 16px;
}
/* Desktop: centre the text block against the memoji instead of pinning it
   near the top (the memoji is drawn 60px low, so sit 30px below centre). */
@media (min-width: 781px) {
  .big-hero-six .main-content-wrapper .content {
    align-self: center;
    padding-top: 0;
    top: 30px;
  }
}

/* Project titles stay smaller than the hero headline at every width (they
   were a fixed 52px / 42px while the headline now scales to fit one line).
   Stacked: 6.8vw vs the headline's 8.3vw. Side-by-side: 4vw vs 4.7vw. */
.papa-wrapper .section .content h2 {
  font-size: min(4vw, 52px);
}
@media (max-width: 780px) {
  .papa-wrapper .section .content h2 {
    font-size: min(6.8vw, 40px);
  }
}
/* "Follow me on the internet" scales with the project titles, one step below. */
.miscelanious-is-a-funny-word h3 {
  font-size: min(3.6vw, 36px);
}
@media (max-width: 780px) {
  .miscelanious-is-a-funny-word h3 {
    font-size: min(6.4vw, 32px);
  }
}
/* Project label ("University Project") on its own line above the title.
   It used to be pulled 8px down into the title's line, which was fine at
   52px but made it touch the smaller titles on phones. */
.section .content h2 .timestamp {
  display: block;
  bottom: 0;
  margin: 0 0 6px 2px;
  line-height: 1.3;
}
.section .content h2 br {
  display: none;
}
/* Desktop hero: start the text block level with the greeting bubble, so
   "Hi, my name is Polina" sits on the same line as "Labas rytas". The bubble
   is 40px from the top and 24px + its font size tall; centre the first line
   (25px) on it. Replaces the vertical centring above. */
@media (min-width: 781px) {
  .big-hero-six .main-content-wrapper .content {
    align-self: flex-start;
    top: 0;
    padding-top: calc(39px + clamp(8px, 1.1vw, 14px));
  }
}

/* =========================================================
   BLUE BAY (home section) — reuses the Kumite live-stream
   section layout (class "live-stream"), recoloured to the Blue
   Bay navy. Images are placeholders in /assets/blue-bay/.
   ========================================================= */
.blue-bay {
  z-index: 1;
  background: #033466;
  color: #fff;
}
@media (max-width: 975px) {
  .blue-bay {
    z-index: 3;
  }
}
/* Wave into the next section (Intro Week Game purple). */
.blue-bay .wave-bottom path {
  fill: #623862;
}
.blue-bay .card:nth-child(1) {
  background-color: #fff;
  background-image: url(/assets/blue-bay/logo.png);
  background-size: 72%;
  background-repeat: no-repeat;
  background-position: center;
}
.blue-bay .card:nth-child(2) {
  background-image: url(/assets/blue-bay/homepage-after.webp);
}
.blue-bay .card:nth-child(3) {
  background-image: url(/assets/blue-bay/accommodation-new.webp);
}
.blue-bay .card:nth-child(4) {
  background-image: url(/assets/blue-bay/dining-after.webp);
}
.blue-bay .showcase .video-card img {
  display: block;
  width: 100%;
  border-radius: 16px;
}
/* The hero now flows into Blue Bay instead of Intro Week Game. */
.big-hero-six .wave-bottom path {
  fill: #033466;
}
@media (min-width: 781px) {
  .big-hero-six .background {
    background: #033466;
  }
}

/* =========================================================
   BLUE BAY (project page)
   ========================================================= */
.blue-bay-hero {
  height: auto;
  min-height: 80vh;
  padding-bottom: 140px;
  background-color: #033466;
  color: #fff;
}
.blue-bay-hero .main-content-wrapper {
  align-items: center;
  gap: 48px;
}
.blue-bay-hero .showcase {
  flex: 1 1 50%;
}
.blue-bay-hero .content {
  flex: 1 1 50%;
}
/* Findings list inside a centred project section: left-aligned for reading. */
.project-list {
  max-width: 720px;
  margin: -16px auto 40px;
  padding-left: 1.2em;
  text-align: left;
  font-size: 18px;
  line-height: 1.6;
}
.project-list li {
  margin-bottom: 8px;
  opacity: .8;
}
/* Before / after pair (also used by the Kumite page). */
.before-after-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 8px;
}
.before-after-wrapper .project-media {
  width: 100%;
}
.project-container .before-after-wrapper p {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .6;
}
.project-live-link {
  margin-top: 40px;
}
@media (max-width: 768px) {
  .blue-bay-hero .main-content-wrapper {
    flex-direction: column;
    text-align: center;
  }
}

/* Project pages: clip the 1400px-wide wave inside its section. Without this
   every project page could scroll sideways by ~500px on phones. `clip` (not
   `hidden`) so the section doesn't become its own scroll box. */
.project-page .section,
.project-page .project-section {
  overflow-x: clip;
}

/* Blue Bay page: diagrams and boards need more width than the shared 480px
   cap on .project-media to stay readable. */
.blue-bay-page .project-media {
  width: 100%;
  max-width: 900px;
}
.before-after-title {
  margin: 48px 0 16px;
  font-size: 22px;
}
.before-after-wrapper {
  align-items: start;
}
.blue-bay-hero .showcase img {
  height: auto;
}
/* Space between two images that follow each other (GEO charts). */
.blue-bay-page img.project-media + img.project-media {
  display: block;
  margin: 24px auto 0;
}
/* Gallery of new page designs on the Blue Bay page. */
.page-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: start;
  margin-top: 8px;
}
.page-gallery figure {
  margin: 0;
}
.page-gallery figcaption {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .6;
}

/* =========================================================
   GEO SCANNER (home section) — reuses the Trend Radar section
   layout and orange (class "trend-radar"), with scanner images.
   ========================================================= */
.geo-scanner .card:nth-child(1) {
  height: 300px;
  background-image: url(/assets/geo-scanner/laptop-readiness.webp);
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  box-shadow: 0 4px 24px 2px rgba(14, 30, 37, .16);
}
.geo-scanner .showcase .video-card {
  border-radius: 16px;
}
.geo-scanner .showcase .video-card img {
  display: block;
  width: 360px;
  border-radius: 16px;
}

/* =========================================================
   GEO SCANNER (project page)
   ========================================================= */
.geo-hero {
  height: auto;
  min-height: 80vh;
  padding-bottom: 140px;
  background-color: #ef7b10;
  color: #1d1d1d;
}
.geo-hero .main-content-wrapper {
  align-items: center;
  gap: 48px;
}
.geo-hero .content,
.geo-hero .showcase {
  flex: 1 1 50%;
}
.geo-hero .showcase img {
  height: auto;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .25);
}
/* Dark text on the orange: 6:1 headings, 5.2:1 body, 4.8:1 label. */
.geo-hero p {
  opacity: .9;
}
.geo-hero .timestamp {
  opacity: .85;
}
@media (max-width: 768px) {
  .geo-hero .main-content-wrapper {
    flex-direction: column;
    text-align: center;
  }
}
.geo-page .project-media {
  width: 100%;
  max-width: 900px;
}
.geo-page img.project-media + img.project-media,
.geo-page .project-container p + img.project-media {
  display: block;
  margin: 0 auto;
}
/* Two by two on wider screens, one column on phones. */
.page-gallery {
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .page-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* GEO Scanner sits between Blue Bay and Intro Week Game, on white. */
.geo-scanner {
  background: #fff;
}
.geo-scanner .wave-bottom path {
  fill: #623862;
}
.blue-bay .wave-bottom path {
  fill: #fff;
}
/* Polarization is now followed by the white "Follow me" section. */
.polarization .wave-bottom path {
  fill: #fff;
}
.geo-hero {
  background-color: #fff;
}

/* GEO page: "One scan, two answers" cards, coded after the scanner design. */
.scan-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 8px 0 40px;
  text-align: left;
}
@media (min-width: 760px) {
  .scan-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
.scan-card {
  display: flex;
  flex-direction: column;
  padding: 28px 28px 12px;
  border-radius: 16px;
  background: #fff;
  color: #0e1e25;
}
.project-container .scan-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  color: #0e1e25;
}
.project-container .scan-card p {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.5;
  color: #4a5560;
  opacity: 1;
}
.scan-states {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.scan-states li {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
}
.scan-states .is-linked { background: #e1f0e4; color: #22622f; }
.scan-states .is-read { background: #f7ecd2; color: #6e520e; }
.scan-states .is-mentioned { background: #ebe5f6; color: #523f80; }
.scan-states .is-missing { background: #eef0f2; color: #4a5560; }
.scan-scale-bar {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #dbe7f2, #1c3a5e);
}
.scan-scale-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 13px;
  color: #4a5560;
}
.scan-card img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: auto;
  padding-top: 16px;
}

/* Home GEO section: two laptop mockups (white background, no frame). */
.geo-scanner .card:nth-child(1) {
  top: -170px;
  right: -230px;
  width: 600px;
  height: 370px;
  background-size: contain;
  background-repeat: no-repeat;
  box-shadow: none;
  border-radius: 0;
}
.geo-scanner .showcase .video-card {
  top: 90px;
  right: -40px;
  box-shadow: none;
  border-radius: 0;
  transform: scale(.8, .8);
}
.geo-scanner .showcase .video-card:hover {
  transform: scale(.8, .8) translateY(-16px);
}
.geo-scanner .showcase .video-card img {
  width: 420px;
  border-radius: 0;
}

/* Desktop hero: centre the text block vertically in the section
   (replaces the alignment with the greeting bubble above). */
@media (min-width: 781px) {
  .big-hero-six .main-content-wrapper .content {
    align-self: center;
    padding-top: 0;
    top: var(--hero-text-shift, 0px);
  }
}
/* The wave covers the bottom of the hero (81px, more on wide screens), so
   centre on the visible white area: move up by half the wave's height. */
@media (min-width: 781px) {
  .big-hero-six .main-content-wrapper .content {
    --hero-text-shift: calc(-1 * max(40px, 2.9vw));
  }
}

/* Blue Bay: the brand blue used on bluebay-curacao.com and in its design system. */
.blue-bay {
  background: #003764;
}
.big-hero-six .wave-bottom path {
  fill: #003764;
}
@media (min-width: 781px) {
  .big-hero-six .background {
    background: #003764;
  }
}
.blue-bay-hero {
  background-color: #003764;
}
/* Collage cards take each image's own proportions, so nothing is cropped. */
.blue-bay .card:nth-child(2) {
  height: calc(400px / 1.547);
}
.blue-bay .card:nth-child(3) {
  height: calc(450px / 1.646);
}
.blue-bay .card:nth-child(4) {
  height: calc(400px / 1.37);
}
/* Logo tile: white logo on the Blue Bay deep navy, like an app icon. */
.blue-bay .card:nth-child(1) {
  background-color: #002542;
  background-image: url(/assets/blue-bay/logo-white.png);
  background-size: 64%;
}
/* Home GEO section: one laptop now, centred on the text block. */
.geo-scanner .card:nth-child(1) {
  top: -48px;
}
/* Home GEO section: same text colours as Art Detective (black, paragraphs
   and label at the site's default 70%). The darker values came from the
   Trend Radar contrast fix, which only mattered on orange. */
.geo-scanner {
  color: #000;
}
.geo-scanner p,
.geo-scanner .timestamp {
  opacity: .7;
}

/* Blue Bay home collage: laptop and phone mockups (transparent PNGs),
   replacing the screenshot cards and logo tile. */
.blue-bay .showcase .card.bb-laptop,
.blue-bay .showcase .card.bb-phones {
  width: auto;
  height: auto;
  background: none;
  box-shadow: none;
  border-radius: 0;
  transform: none;
}
.blue-bay .showcase .card.bb-laptop {
  top: -230px;
  left: -250px;
  z-index: 1;
}
.blue-bay .showcase .card.bb-phones {
  top: -40px;
  left: -390px;
  z-index: 2;
}
.blue-bay .showcase .card.bb-laptop img {
  display: block;
  width: 600px;
}
.blue-bay .showcase .card.bb-phones img {
  display: block;
  width: 400px;
}
.blue-bay .showcaseMobile img {
  border-radius: 0;
}
/* Stacked layout (up to 975px): show the single phones mockup, centred. */
@media (max-width: 975px) {
  .blue-bay .showcase {
    display: none !important;
  }
  .blue-bay .showcaseMobile {
    display: flex !important;
    justify-content: center;
  }
  .blue-bay .showcaseMobile img {
    max-width: 560px;
  }
}
/* Device mockups (transparent PNGs): no card shadow or rounding, centred. */
.mockup-gallery {
  align-items: center;
  margin-top: 8px;
}
.mockup-gallery .project-media {
  box-shadow: none;
  border-radius: 0;
}

/* Blue Bay page: the hero title is the page's H1 (the top bar no longer
   repeats it). Keep the look it had as an H2. */
.blue-bay-hero h1.hero-title {
  margin: 0;
  font-family: inherit;
  font-size: 52px;
  font-weight: 700;
  line-height: normal;
}
@media (max-width: 520px) {
  .blue-bay-hero h1.hero-title {
    font-size: 42px;
  }
}
.blue-bay-hero h1.hero-title .timestamp {
  display: block;
  bottom: 0;
  margin: 0 0 6px 2px;
  line-height: 1.3;
}
.blue-bay-hero h1.hero-title br {
  display: none;
}

/* "← Home": a 44px-tall tap area on every project page, without changing
   the header's height (the padding is cancelled by a negative margin). */
.project-home-link {
  display: inline-block;
  padding: 13px;
  margin: -13px;
}

/* Keyboard focus: the same 2px ring on every page (it was only on home). */
a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
  border-radius: 2px;
}

/* Blue Bay page: labels sit above their headings instead of inside them,
   so headings are read as just their title. Same look as before. */
.blue-bay-hero .content p.hero-label {
  display: block;
  bottom: 0;
  margin: 0 0 6px 2px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  opacity: .7;
}
.project-container p.project-phase {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  opacity: .6;
  text-transform: uppercase;
}


/* =========================================================
   FONTS: DM Sans for text, DM Mono for small labels
   (the pair used on byhris.cc). Applied everywhere a font was set.
   ========================================================= */
:root {
  --font-sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --rounded: var(--font-sans);
}
body,
h1,
.bingo,
.trend-radar,
.live-stream,
.project-page,
.art-detective-hero,
.polarization-hero,
button,
input,
select,
textarea {
  font-family: var(--font-sans);
}

/* =========================================================
   CASE PAGES: Overview, Problem, Process, Key screens, Mobile,
   Highlights, Outcome, with a sticky "On this page" list.
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  html:has(body.case-page) {
    scroll-behavior: smooth;
  }
}
body.case-page p.hero-label {
  position: relative;
  bottom: 0;
  display: block;
  margin: 0 0 8px 2px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .04em;
  line-height: 1.3;
  opacity: .75;
}
body.case-page h1.hero-title {
  margin: 0 0 8px;
  font-family: inherit;
  font-size: clamp(36px, 4.4vw, 52px);
  font-weight: 700;
  line-height: 1.1;
}
.case-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 64px;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 0 120px;
}
.case-toc {
  position: sticky;
  top: 100px;
  align-self: start;
}
.case-toc-label {
  margin: 0 0 14px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #8b8b8b;
  opacity: 1;
}
.case-toc ol {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.case-toc a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: #a3a3a3;
  font-size: 16px;
  text-decoration: none;
  transition: color .15s ease, background-color .15s ease;
}
.case-toc a:hover {
  color: #fff;
}
.case-toc a[aria-current="true"] {
  background: #2c2c2c;
  color: #fff;
  font-weight: 600;
}
.case-body.project-container {
  width: auto;
  max-width: 860px;
  margin: 0;
}
.case-section {
  scroll-margin-top: 90px;
  padding-bottom: 96px;
}
.case-section:last-child {
  padding-bottom: 0;
}
.project-container .case-section h2 {
  margin: 0 0 20px;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 600;
  line-height: 1.15;
  text-align: left;
}
.project-container .case-section h3 {
  margin: 44px 0 12px;
  font-size: 22px;
  font-weight: 600;
  text-align: left;
}
.project-container .case-section > p,
.project-container .case-section > ul,
.project-container .case-section > ol {
  max-width: 680px;
  margin: 0 0 20px;
  font-size: 18px;
  line-height: 1.6;
  color: #d4d4d4;
  opacity: 1;
  text-align: left;
}
.project-container .case-section > ul,
.project-container .case-section > ol {
  padding-left: 1.2em;
}
.case-section .project-list li {
  opacity: 1;
}
.case-section > .project-links {
  margin: 8px 0 20px;
  text-align: left;
}
.case-section > a.external-link {
  margin-top: 8px;
}
/* Project facts (Overview) */
.case-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid #333;
  border-radius: 16px;
  background: #333;
}
.case-facts > div {
  padding: 20px 22px;
  background: #1d1d1d;
}
.case-facts dt {
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8b8b8b;
}
.case-facts dd {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  color: #fff;
}
/* Figures with mono captions */
.case-figure {
  margin: 32px 0;
}
.case-figure img,
.case-figure video {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 80vh;
  height: auto;
  margin: 0;
  border-radius: 12px;
  box-shadow: none;
}
.case-figure figcaption {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .02em;
  line-height: 1.4;
  color: #8b8b8b;
  text-align: left;
}
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
  margin: 32px 0;
}
.case-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.case-grid .case-figure {
  margin: 0;
}
.case-grid .case-figure img {
  width: 100%;
}
.project-container .case-section .before-after-wrapper p,
.case-section .page-gallery figcaption {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8b8b8b;
  opacity: 1;
  text-align: left;
}
.case-section .page-gallery figcaption {
  margin: 12px 0 0;
}
.case-section .before-after-wrapper {
  margin: 0 0 8px;
}
/* Outcome stat cards */
.case-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 32px 0;
  padding: 0;
  list-style: none;
}
.case-stats li {
  padding: 28px 28px 30px;
  border: 1px solid #333;
  border-radius: 16px;
}
.case-stats strong {
  display: block;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  line-height: 1.1;
  color: #fff;
}
.case-stats span {
  display: block;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.45;
  color: #9a9a9a;
}
/* Phones and tablets: the list becomes a row of chips under the top bar. */
@media (max-width: 1023px) {
  .case-layout {
    display: block;
    width: auto;
    padding: 0 0 96px;
  }
  .case-toc {
    position: sticky;
    top: var(--site-header-h); /* right under the site header */
    z-index: 50;
    margin: 0 0 40px;
    padding: 10px 5%;
    border-bottom: 1px solid #2c2c2c;
    background: rgba(29, 29, 29, .94);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
  .case-toc-label {
    display: none;
  }
  .case-toc ol {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .case-toc ol::-webkit-scrollbar {
    display: none;
  }
  .case-toc a {
    padding: 7px 14px;
    border: 1px solid #333;
    border-radius: 999px;
    font-size: 14px;
    white-space: nowrap;
  }
  .case-toc a[aria-current="true"] {
    border-color: #fff;
    background: #fff;
    color: #111;
  }
  .case-body.project-container {
    width: 90%;
    margin: 0 auto;
  }
  .case-section {
    scroll-margin-top: 130px;
    padding-bottom: 72px;
  }
}
@media (max-width: 760px) {
  .case-stats {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .case-grid,
  .case-grid-3 {
    grid-template-columns: 1fr;
  }
}

/* =========================
   MEMOJI: EYES FOLLOW THE CURSOR
   The memoji is layered so the irises can move: face.webp is the memoji
   with the eye openings cut out, and the whites and irises sit underneath
   it. At rest the layers add up to the original memoji.png exactly.
   Positions are in % of the 1536x1024 source. js/memoji.js sets
   --look-x / --look-y (-1 to 1).
   ========================= */
.big-hero-six .memoji {
  position: relative;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.big-hero-six .memoji > img {
  position: absolute;
  display: block;
  height: auto;
  max-width: none;
  pointer-events: none;
}
.big-hero-six .memoji > .memoji-face {
  position: relative;
  width: 100%;
}
.big-hero-six .memoji .memoji-sclera { left: 39.453%; top: 28.418%; width: 21.81%; }
.big-hero-six .memoji .memoji-iris-left { left: 42.383%; top: 31.055%; width: 3.971%; }
.big-hero-six .memoji .memoji-iris-right { left: 54.362%; top: 29.785%; width: 4.102%; }
/* 12px sideways and 4px up/down in the source: enough to look around
   without the iris leaving the white. */
.big-hero-six .memoji .memoji-iris {
  translate: calc(var(--look-x, 0) * 19.4%) calc(var(--look-y, 0) * 6.5%);
}
@media (max-width: 780px) {
  .big-hero-six .main-content-wrapper > .memoji { width: 60vw; }
}

/* Hero background lines (js/hero-lines.js): a canvas behind the text,
   memoji and wave. */
.big-hero-six .hero-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* =========================================================
   HERO: FULL SCREEN + TYPE (UX audit)
   Overrides the earlier hero rules above.
   - The hero fills the screen. The memoji stays anchored to the wave (its
     cut-off bottom edge hides behind it) and the text block is centred in
     the white area above the wave.
   - Type: weights 400 / 500 / 600 (no 900), headline line-height 1.1,
     body lines 1.5, gaps on the 4/8px grid.
   - One action, "See my work", so the projects below the fold are one
     click away.
   ========================================================= */
.big-hero-six {
  /* The wave is never narrower than 1400px; its SVG is 4323 x 250. */
  --wave-h: max(81px, 5.783vw);
}

/* Type */
.big-hero-six h1 {
  margin-top: 12px;
  font-weight: 600;
  line-height: 1.1;
}
.big-hero-six h1 .hero-tagline {
  line-height: 1.25;
}
.big-hero-six .main-content-wrapper .content p {
  line-height: 1.5;
}
/* "Hi, my name is Polina": a 44px+ tap area without moving the text. */
.big-hero-six .main-content-wrapper .content p:first-of-type a {
  display: inline-block;
  padding: 10px 0;
  margin: -10px 0;
}

/* Action */
.big-hero-six .hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  margin-top: 32px;
  padding: 0 24px;
  border-radius: 999px;
  background: #0e1e25;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
}
.big-hero-six .hero-cta:hover {
  background: #2b3b43;
}
.papa-wrapper .big-hero-six .hero-cta:focus-visible {
  outline: 2px solid #0e1e25;
  outline-offset: 3px;
  border-radius: 999px;
}
@media (prefers-reduced-motion: no-preference) {
  html:has(.big-hero-six) {
    scroll-behavior: smooth;
  }
}

/* Full screen: side by side (781px and up) */
@media (min-width: 781px) {
  .big-hero-six {
    height: 100vh;
    height: 100svh;
    min-height: 640px;
  }
  .big-hero-six .main-content-wrapper {
    /* The taller hero lets the memoji grow (was capped at 82.5vh). */
    --memoji-w: min(calc((min(90vw, 1120px) - var(--text-col) - 32px) / 0.579), 95vh);
    margin-top: 0;
    margin-bottom: 0;
    padding-bottom: var(--wave-h);
    align-items: center;
  }
  .big-hero-six .main-content-wrapper .content {
    align-self: center;
    top: 0;
    padding-top: 0;
  }
  /* Bottom edge 20px above the hero's bottom, behind the wave as before. */
  .big-hero-six .main-content-wrapper > .memoji {
    align-self: flex-end;
    top: calc(var(--wave-h) - 20px);
  }
  /* Greeting bubble: 20px above the memoji's top edge, as before. */
  .big-hero-six .hello-bubble {
    top: calc(100% - 40px - var(--memoji-w) * 2 / 3);
  }
}

/* Full screen: stacked (phones and portrait tablets). Text is centred in
   the space above the memoji; the memoji sits on the wave and is larger. */
@media (max-width: 780px) {
  .big-hero-six {
    min-height: 100vh;
    min-height: 100svh;
  }
  /* The wrapper runs to the bottom so the memoji sits on the wave
     (it used to stop ~115px short, leaving the cut-off edge in view). */
  .big-hero-six .main-content-wrapper {
    --m: min(78vw, 480px);
    margin-top: 32px;
    margin-bottom: 0;
  }
  /* Centred in the free space; the bottom padding keeps the button clear
     of the greeting bubble above the memoji's head. */
  .big-hero-six .main-content-wrapper .content {
    margin-top: auto;
    margin-bottom: auto;
    padding-bottom: 48px;
  }
  .big-hero-six .main-content-wrapper > .memoji {
    flex: 0 0 auto;
    width: var(--m);
    max-width: none;
    left: calc(var(--m) * 0.0465);
  }
  .big-hero-six .hello-bubble {
    bottom: calc(var(--m) * 0.6 - 30px);
    left: calc(50% + var(--m) * 0.1467 + 4px);
  }
  /* Tagline keeps up with the headline on tablets (it fell to 18px under
     a 60px headline). */
  .big-hero-six h1 .hero-tagline {
    font-size: clamp(18px, 3.1vw, 24px);
  }
}

/* =========================================================
   GREETING BUBBLE (UX audit)
   Overrides the original bubble rules near the top of this file.
   - Weight 600 (was 700).
   - A hairline border and a soft shadow under 0.08 opacity, on the bubble
     and its two tail dots (was 0.12 / 0.2 with no border).
   - No idle float loop. The hover lift only on devices that can hover.
     (The float's transform also hid an old scale(.9) on screens up to
     900px; transform: none keeps the size as it looked.)
   - Motion on the 150 / 200ms tokens: the old greeting leaves with
     ease-in, the new one arrives with ease-out.
   - Reduced motion: an opacity-only fade. It used to switch transitions
     off, but the greeting swap waits for the fade to finish, so a click
     made the text disappear for good.
   ========================================================= */
.big-hero-six .hello-bubble {
  font-weight: 600;
  border: 1px solid rgba(14, 30, 37, 0.1);
  box-shadow: 0 6px 16px rgba(14, 30, 37, 0.07), 0 1px 3px rgba(14, 30, 37, 0.06);
  animation: none;
  transform: none;
  will-change: auto;
  transition: transform 150ms ease-out;
}
.big-hero-six .hello-bubble .hello-text::before,
.big-hero-six .hello-bubble .hello-text::after {
  border: 1px solid rgba(14, 30, 37, 0.1);
  box-shadow: 0 2px 6px rgba(14, 30, 37, 0.07);
}
.big-hero-six .hello-bubble:hover,
.big-hero-six .hello-bubble:active {
  transform: none;
}
@media (hover: hover) {
  .big-hero-six .hello-bubble:hover {
    transform: translateY(-2px);
  }
}
/* Same focus ring as the "See my work" button. */
.big-hero-six .hello-bubble:focus-visible,
.big-hero-six .hello-bubble.focus-visible {
  outline: 2px solid #0e1e25;
  outline-offset: 3px;
}
.big-hero-six .hello-bubble .hello-text {
  transition: opacity 200ms ease-out, transform 200ms ease-out;
}
.big-hero-six .hello-bubble .hello-text.is-out {
  transition: opacity 150ms ease-in, transform 150ms ease-in;
}
@media (prefers-reduced-motion: reduce) {
  .big-hero-six .hello-bubble {
    transition: none;
  }
  .big-hero-six .hello-bubble:hover {
    transform: none;
  }
  .big-hero-six .hello-bubble .hello-text,
  .big-hero-six .hello-bubble .hello-text.is-out {
    transform: none;
    transition: opacity 150ms linear;
  }
}
/* Phones: the mirrored tail dots sat across the bubble's edge, which the
   new hairline border made visible. Keep them just outside it. */
@media (max-width: 780px) {
  .big-hero-six .hello-bubble .hello-text::before {
    left: -36px;
    top: 95%;
  }
  .big-hero-six .hello-bubble .hello-text::after {
    left: -50px;
    top: 150%;
  }
}

/* =========================================================
   SERVICES (home, between the hero and My projects): "What I do as"
   The three roles as large text on the left (vertical tabs) switch one
   list on the right. Grey #f5f5f5, with colour only in small marks: the
   active role's number chip, the indicator and the icon tiles, in that
   role's pastel and a deep tone of it. js/services-tabs.js switches the
   panels, moves the indicator and handles the arrow keys.
   Motion: the indicator slides (250ms, strong ease-out); a new list fades
   up (220ms, 30ms stagger).
   ========================================================= */
.services {
  --services-ease: cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  z-index: 2; /* above the hero's band and wave */
  padding-top: 104px;
  background: #f5f5f5;
  color: #0a0a0a;
  font-family: var(--font-sans);
}
.services p {
  opacity: 1;
}
/* Role colours: the site's pastels, plus a deep tone of each for small
   marks (4.5:1 or more on #f5f5f5 and on its own pastel). */
.services[data-role="frontend"],
.services-tab[data-role="frontend"] {
  --services-pastel: #d6e7fa;
  --services-accent: #2563a8;
}
.services[data-role="ux"],
.services-tab[data-role="ux"] {
  --services-pastel: #e7dcf9;
  --services-accent: #6d4bc4;
}
.services[data-role="polina"],
.services-tab[data-role="polina"] {
  --services-pastel: #fceebd;
  --services-accent: #8a6500;
}
.services-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
  gap: 40px 72px;
  width: 90%;
  max-width: 1120px;
  margin: 0 auto;
  padding-bottom: 96px;
}
.services .services-eyebrow {
  margin: 0 0 20px;
  color: #666;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

/* Role tabs */
.services-tabs {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.services-indicator {
  position: absolute;
  top: 0;
  left: -24px;
  width: 3px;
  border-radius: 2px;
  background: var(--services-accent);
}
.services-tabs[data-ready] .services-indicator {
  transition:
    transform 250ms var(--services-ease),
    height 250ms var(--services-ease);
}
.services-tab {
  --services-tab-size: clamp(28px, 3.4vw, 44px);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 6px 0;
  border: 0;
  background: none;
  /* #8a8a8a: 3.2:1 on #f5f5f5, enough for text this large */
  color: #8a8a8a;
  font-family: var(--font-sans);
  font-size: var(--services-tab-size);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-align: left;
  cursor: pointer;
  transition: color 200ms ease-out;
}
/* Number chip: grey ring, filled with the role's pastel when active. */
.services-tab-num {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 22px;
  /* centre the chip on the label's first line */
  margin-top: calc(var(--services-tab-size) * 0.575 - 11px);
  padding: 0 7px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px #d4d4d4;
  color: #6b6b6b;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  transition:
    background-color 200ms ease-out,
    box-shadow 200ms ease-out,
    color 200ms ease-out;
}
@media (hover: hover) and (pointer: fine) {
  .services-tab:hover {
    color: #525252;
  }
}
.services-tab[aria-selected="true"] {
  color: #0a0a0a;
}
.services-tab[aria-selected="true"] .services-tab-num {
  background: var(--services-pastel);
  box-shadow: inset 0 0 0 1px transparent;
  color: var(--services-accent);
}
.services-tab:focus-visible {
  outline: 2px solid #0e1e25;
  outline-offset: 4px;
  border-radius: 6px;
}
.services .services-intro {
  max-width: 22rem;
  margin: 28px 0 0;
  color: #525252;
  font-size: 16px;
  line-height: 1.5;
}

/* The list */
.services-panel {
  padding: 8px 28px;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.services-panel:focus-visible {
  outline: 2px solid #0e1e25;
  outline-offset: 4px;
}
.services-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.services-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  column-gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid #eee;
}
.services-item:last-child {
  border-bottom: 0;
}
.services-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--services-pastel);
  color: var(--services-accent);
}
.services-icon svg {
  display: block;
}
/* Title's first line level with the middle of the tile. */
.services-item > div {
  padding-top: 7px;
}
.services .services-item-title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}
.services .services-item-desc {
  margin: 4px 0 0;
  color: #525252;
  font-size: 15px;
  line-height: 1.5;
}
.services-panel.is-entering .services-item {
  animation: services-enter 220ms ease-out both;
  animation-delay: calc(var(--i) * 30ms);
}
@keyframes services-enter {
  from { opacity: 0; transform: translateY(6px); }
}

/* Waves: the hero flows into the grey, the grey into My projects. */
.big-hero-six .wave-bottom path {
  fill: #f5f5f5;
}
@media (min-width: 781px) {
  .big-hero-six .background {
    background: #f5f5f5;
  }
}
.services-wave {
  display: block;
  width: 100%;
  height: max(48px, 4.2vw);
  margin-bottom: -1px;
  background: #f5f5f5;
}

@media (max-width: 900px) {
  .services {
    padding-top: 72px;
  }
  .services-inner {
    grid-template-columns: minmax(0, 1fr);
    padding-bottom: 64px;
  }
  .services-indicator {
    display: none;
  }
  .services-tab {
    --services-tab-size: clamp(26px, 6.4vw, 36px);
  }
  .services .services-intro {
    margin-top: 16px;
  }
}
@media (max-width: 520px) {
  .services-panel {
    padding: 4px 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .services-tabs[data-ready] .services-indicator,
  .services-tab-num {
    transition: none;
  }
  @keyframes services-enter {
    from { opacity: 0; }
  }
}

/* =========================================================
   SELECTED WORK SHOWCASE (#work), after "What I do as:"
   After Venus UI's live block: a dark device frame that starts tilted back
   (rotateX 38deg, scale .86, 80px low) and straightens as it scrolls into
   view. js/showcase.js sets --ls-e from 0 (tilted) to 1 (flat); without
   JS or with reduced motion it stays flat. One screenshot per project,
   switched with the arrows (crossfade).
   ========================================================= */
.live-showcase {
  --ls-e: 1;
  z-index: 2;
  padding: 120px 0 calc(120px + max(81px, 5.783vw));
  background: #fff;
  color: #0a0a0a;
  font-family: var(--font-sans);
}
.live-showcase p {
  opacity: 1;
}
.ls-inner {
  width: 90%;
  max-width: 1120px;
  margin: 0 auto;
}
.ls-header {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
  transform: translateY(calc((1 - var(--ls-e)) * 70px));
}
.ls-eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #666;
}
.live-showcase .ls-title {
  margin: 0;
  font-size: min(4vw, 52px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.ls-lead {
  max-width: 36rem;
  margin: 16px auto 0;
  font-size: 18px;
  line-height: 1.5;
  color: #525252;
  text-wrap: pretty;
}
.ls-stage {
  max-width: 880px;
  margin: 56px auto 0;
  perspective: 1200px;
}
.ls-device {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 26px;
  background: #171717;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 30px 60px -30px rgba(14, 30, 37, 0.07);
  transform-origin: 50% 100%;
  transform:
    translateY(calc((1 - var(--ls-e)) * 80px))
    scale(calc(0.86 + 0.14 * var(--ls-e)))
    rotateX(calc((1 - var(--ls-e)) * 38deg));
}
.ls-screen {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 16px;
  background: #0a0a0a;
  touch-action: pan-y; /* horizontal swipes switch projects */
}
.ls-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 300ms ease-out;
  -webkit-user-drag: none;
  user-select: none;
}
.ls-shot.is-active {
  opacity: 1;
}
.ls-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 28px;
}
.ls-arrow {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #e5e5e5;
  border-radius: 999px;
  background: #fff;
  color: #0a0a0a;
  cursor: pointer;
}
@media (hover: hover) {
  .ls-arrow:hover {
    background: #f5f5f5;
  }
}
.ls-arrow:focus-visible {
  outline: 2px solid #0e1e25;
  outline-offset: 2px;
}
.ls-caption {
  flex: 0 1 26rem;
  min-width: 0;
  text-align: center;
}
.live-showcase .ls-name {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  color: #0a0a0a;
  text-wrap: balance;
}

/* Under the arrows: "Read the case study" (the same dark pill as the
   hero's "See my work") and "View all projects" (the outline one). */
.ls-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}
.ls-read,
.ls-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
}
.ls-read {
  background: #0e1e25;
  color: #fff;
}
.ls-all {
  color: #0e1e25;
  box-shadow: inset 0 0 0 1px rgba(14, 30, 37, 0.24);
}
.ls-read svg {
  transition: transform 200ms ease-out;
}
@media (hover: hover) {
  .ls-read:hover {
    background: #2b3b43;
  }
  .ls-read:hover svg {
    transform: translateX(3px);
  }
  .ls-all:hover {
    background: rgba(14, 30, 37, 0.06);
  }
}
.live-showcase .ls-read:focus-visible,
.live-showcase .ls-all:focus-visible {
  outline: 2px solid #0e1e25;
  outline-offset: 3px;
}
/* On a laptop the screen itself opens the project (with its hover hint),
   so the pill is hidden. It stays for screen readers and comes back when
   tabbed to, since the screen link is not keyboard-focusable. */
@media (hover: hover) and (pointer: fine) and (min-width: 976px) {
  .ls-read:not(:focus-visible) {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 0;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* The screen itself opens the project too. On hover a scrim and a
   "Read the case study" label rise from the bottom of the screen. */
.ls-open {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  color: #0a0a0a;
  text-decoration: none;
  -webkit-user-drag: none;
  -webkit-tap-highlight-color: transparent;
}
.ls-open::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.5), rgba(10, 10, 10, 0) 45%);
  opacity: 0;
  transition: opacity 200ms ease-out;
}
.ls-open-hint {
  position: absolute;
  left: 50%;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 20px -6px rgba(0, 0, 0, 0.35);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity 200ms ease-out, transform 200ms ease-out;
}
@media (hover: hover) {
  .ls-open:hover::before,
  .ls-open:hover .ls-open-hint {
    opacity: 1;
  }
  .ls-open:hover .ls-open-hint {
    transform: translate(-50%, 0);
  }
}
.ls-screen--phone .ls-open-hint {
  bottom: 28px;
  padding: 9px 14px;
  font-size: 14px;
}
/* Into Blue Bay */
.live-showcase .wave-bottom path {
  fill: #003764;
}
/* "What I do as:" now flows into this white section. */
.services .wave-bottom path {
  fill: #fff;
}
@media (prefers-reduced-motion: reduce) {
  .ls-shot,
  .ls-read svg,
  .ls-open::before,
  .ls-open-hint {
    transition: none;
  }
  .ls-read:hover svg {
    transform: none;
  }
}
@media (max-width: 780px) {
  .live-showcase .ls-title {
    font-size: min(6.8vw, 40px);
  }
}
@media (max-width: 639px) {
  .live-showcase {
    padding-top: 72px;
  }
  .ls-lead {
    font-size: 16px;
  }
  .ls-stage {
    margin-top: 40px;
  }
  .ls-device {
    padding: 6px;
    border-radius: 18px;
  }
  .ls-screen {
    border-radius: 12px;
  }
  .ls-controls {
    gap: 12px;
  }
  .live-showcase .ls-name {
    font-size: 17px;
  }
}

/* Showcase: laptop frame for web projects, phone frame for the mobile-only
   apps (Intro Week Game, Art Detective). Both sit in .ls-tilt, which now
   carries the scroll tilt. The laptop frame always sets the stage's size
   (it only fades out), so the arrows never move; the phone frame is as
   tall as the stage. Switching type crossfades with a slight scale. */
.ls-tilt {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(96vw, 420px); /* room for a readable phone on small screens */
  transform-origin: 50% 100%;
  transform:
    translateY(calc((1 - var(--ls-e)) * 80px))
    scale(calc(0.86 + 0.14 * var(--ls-e)))
    rotateX(calc((1 - var(--ls-e)) * 38deg));
}
.ls-device {
  transform: none;
  transition: opacity 300ms ease-out, transform 300ms ease-out;
}
.ls-device--desktop {
  flex: 1 1 auto;
}
.ls-device--phone {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  aspect-ratio: 9 / 19.5;
  padding: 10px;
  border-radius: 48px;
  transform: translateX(-50%) scale(0.94);
  opacity: 0;
  pointer-events: none;
}
.ls-screen--phone {
  height: 100%;
  aspect-ratio: auto;
  border-radius: 38px;
  background: #000;
}
.ls-stage[data-device="phone"] .ls-device--desktop {
  opacity: 0;
  transform: scale(0.94);
  pointer-events: none;
}
.ls-stage[data-device="phone"] .ls-device--phone {
  opacity: 1;
  transform: translateX(-50%) scale(1);
  pointer-events: auto;
}
.ls-stage {
  touch-action: pan-y; /* horizontal swipes switch projects */
}
@media (prefers-reduced-motion: reduce) {
  .ls-device {
    transition: none;
  }
}
@media (max-width: 639px) {
  .ls-device--phone {
    padding: 6px;
    border-radius: 30px;
  }
  .ls-screen--phone {
    border-radius: 24px;
  }
}

/* The old project sections are gone: "My projects" now flows straight into
   the white "Follow me on the internet" section, so no wave. */
.live-showcase {
  padding-bottom: 120px;
}
@media (max-width: 639px) {
  .live-showcase {
    padding-bottom: 80px;
  }
}

/* =========================================================
   ABOUT ME (/about/)
   Résumé layout after byhris.cc (label, name, contact column; numbered
   sections with meta | description rows) and shadcn's "About 28" block
   (photo with the story beside it). Same tokens as the home page's
   newer sections: white, #e5e5e5 hairlines, #666 muted text, DM Sans /
   DM Mono, weights 400 / 500 / 600.
   ========================================================= */
body.about-page {
  background: #fff;
  color: #0a0a0a;
  font-family: var(--font-sans);
  font-size: 16px;
}
.about-page p {
  opacity: 1;
  margin: 0;
  line-height: 1.6;
}
.about-page h1,
.about-page h2,
.about-page h3 {
  font-family: var(--font-sans);
  margin: 0;
}

.about-main,
.about-footer {
  width: 90%;
  max-width: 1120px;
  margin: 0 auto;
}

/* Download CV: the same dark pill as "See my work" on the home page */
.about-cv {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: #0e1e25;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
}
.about-cv--small {
  min-height: 44px;
  padding: 0 18px;
  font-size: 15px;
}
@media (hover: hover) {
  .about-cv:hover { background: #2b3b43; }
}
.about-page .about-cv:focus-visible {
  outline: 2px solid #0e1e25;
  outline-offset: 3px;
  border-radius: 999px;
}

.about-mono,
.about-num {
  font-family: var(--font-mono);
}

/* Hero: the name and a short intro, then a rail of photos that starts on
   the page's left edge and runs off the right. Black, white and grey
   only; the photos bring the colour. The rail scrolls natively (trackpad,
   touch, arrow keys); js/about-gallery.js adds the arrows and the bar. */
.about-hero {
  padding: 40px 0 96px;
}
.about-hero-head,
.about-gallery-bar {
  width: 90%;
  max-width: 1120px;
  margin: 0 auto;
}
.about-hero-head {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  align-items: end;
  gap: 32px 64px;
}
.about-page .about-hero h1 {
  font-size: clamp(44px, 7.2vw, 92px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: #0a0a0a;
  text-wrap: balance;
}
.about-page .about-role {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 15px;
  color: #525252;
}
.about-page .about-lead {
  font-size: 19px;
  line-height: 1.55;
  color: #262626;
}
.about-page .about-hero-sub {
  margin-top: 12px;
  color: #525252;
}

.about-gallery {
  margin-top: 64px;
}
.about-gallery-rail {
  /* Line the first photo up with the text above; percentages here and
     in scroll-padding both resolve against the full page width. */
  --pad: calc((100% - min(90%, 1120px)) / 2);
  --h: clamp(260px, 34vw, 440px);
  position: relative; /* the photos' offsetLeft is measured from here */
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0 var(--pad);
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--pad);
  scrollbar-width: none;
}
.about-gallery-rail::-webkit-scrollbar {
  display: none;
}
.about-gallery-rail:focus-visible {
  outline: 2px solid #0e1e25;
  outline-offset: -2px;
}
.about-gallery-rail > li {
  flex: none;
  scroll-snap-align: start;
}
.about-gallery-rail figure {
  margin: 0;
}
.about-gallery-rail img {
  display: block;
  width: auto;
  height: var(--h);
  border-radius: 12px;
  background: #f5f5f5;
  object-fit: cover;
  outline: 1px solid rgba(10, 10, 10, 0.06);
  outline-offset: -1px;
  -webkit-user-drag: none;
}
.about-gallery-rail figcaption {
  /* As wide as the photo: a long caption wraps instead of widening it */
  width: 0;
  min-width: 100%;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.45;
  color: #525252;
  text-wrap: pretty;
}

.about-gallery-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 24px;
}
.about-gallery-links {
  display: flex;
  flex: none;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 13px;
}
.about-gallery-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #0a0a0a;
  text-decoration: underline;
  text-decoration-color: #c7c7c7;
  text-underline-offset: 3px;
}
@media (hover: hover) {
  .about-gallery-links a:hover { text-decoration-color: currentColor; }
}
.about-gallery-track {
  flex: 1;
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: #e5e5e5;
}
.about-gallery-thumb {
  display: block;
  width: 30%;
  height: 100%;
  border-radius: inherit;
  background: #0a0a0a;
}
.about-gallery-arrows {
  display: flex;
  flex: none;
  gap: 8px;
}
/* Until the script runs they'd do nothing: keep their space, hide them. */
.about-gallery:not([data-ready]) .about-gallery-track,
.about-gallery:not([data-ready]) .about-gallery-arrows {
  visibility: hidden;
}
.about-gallery-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #e5e5e5;
  border-radius: 999px;
  background: #fff;
  color: #0a0a0a;
  cursor: pointer;
  transition:
    background-color 150ms ease-out,
    border-color 150ms ease-out,
    opacity 150ms ease-out,
    transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}
@media (hover: hover) and (pointer: fine) {
  .about-gallery-btn:hover:not(:disabled) {
    background: #f5f5f5;
    border-color: #d4d4d4;
  }
}
.about-gallery-btn:active:not(:disabled) {
  transform: scale(0.96);
}
.about-gallery-btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.about-gallery-btn:focus-visible,
.about-gallery-links a:focus-visible {
  outline: 2px solid #0e1e25;
  outline-offset: 3px;
}
.about-gallery-btn svg {
  display: block;
}

/* On load the text rises in and the photos slide in from the right. */
@keyframes about-rise {
  from { opacity: 0; transform: translateY(8px); }
}
@keyframes about-slide-in {
  from { opacity: 0; transform: translateX(32px); }
}
@media (prefers-reduced-motion: no-preference) {
  .about-enter {
    animation: about-rise 450ms cubic-bezier(0.23, 1, 0.32, 1) both;
    animation-delay: calc(var(--i, 0) * 50ms);
  }
  .about-gallery-rail > li {
    animation: about-slide-in 600ms cubic-bezier(0.23, 1, 0.32, 1) both;
    animation-delay: calc(200ms + var(--i, 0) * 60ms);
  }
}

@media (max-width: 860px) {
  .about-hero-head {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 680px) {
  .about-hero {
    padding: 24px 0 64px;
  }
  .about-gallery {
    margin-top: 40px;
  }
  .about-gallery-rail {
    gap: 12px;
  }
  /* Touch scrolls the rail; the links and the bar are enough. */
  .about-gallery-arrows {
    display: none;
  }
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 32px;
}
.about-secondary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #0a0a0a;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: #c7c7c7;
  text-underline-offset: 4px;
}

/* Numbered résumé blocks */
.about-block {
  padding: 56px 0;
  border-top: 1px solid #e5e5e5;
}
.about-page .about-block-title {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 600;
  line-height: 1.2;
}
.about-num {
  font-size: 13px;
  font-weight: 500;
  color: #666;
  padding: 2px 10px;
  border: 1px solid #e5e5e5;
  border-radius: 999px;
  transform: translateY(-4px);
}
.about-rows {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
.about-row {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 32px;
  padding: 24px 0;
  border-top: 1px solid #e5e5e5;
}
.about-row:first-child {
  border-top: 0;
  padding-top: 0;
}
.about-page .about-row-meta h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}
.about-row-meta p {
  margin-top: 4px;
  font-size: 15px;
  color: #404040;
}
.about-row-meta .about-mono {
  margin-top: 8px;
  font-size: 13px;
  color: #666;
}
.about-row-body p {
  color: #404040;
}
.about-row-body p + p {
  margin-top: 12px;
}
.about-row-link,
.about-sublist a {
  color: #0a0a0a;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: #c7c7c7;
  text-underline-offset: 3px;
}
.about-row-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 4px;
}
.about-sublist {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  color: #404040;
  line-height: 1.6;
}
.about-sublist li {
  padding: 6px 0;
}
@media (hover: hover) {
  .about-row-link:hover,
  .about-sublist a:hover,
  .about-secondary:hover { text-decoration-color: currentColor; }
}

/* Skills, tools & interests: the same rows as Experience and Education,
   the category on the left, the skills as grey labels on the right.
   Labels are plain text, so no border: they shouldn't look clickable. */
.about-page .about-skill-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}
.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.about-tags li {
  padding: 6px 12px;
  border-radius: 8px;
  background: #f5f5f5;
  color: #262626;
  font-size: 15px;
  line-height: 1.4;
}

/* Closing CTA: a neutral card, the text on the left, the button on the
   right (stacked on phones). */
.about-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  margin: 8px 0 96px;
  padding: 40px;
  border-radius: 20px;
  background: #f5f5f5;
}
.about-page .about-cta h2 {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 600;
  line-height: 1.2;
}
.about-cta p {
  margin-top: 8px;
  color: #525252;
}

.about-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 72px;
  border-top: 1px solid #e5e5e5;
  color: #666;
  font-size: 14px;
}
.about-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #0a0a0a;
}

/* Phones */
@media (max-width: 680px) {
  .about-block {
    padding: 48px 0;
  }
  .about-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .about-cta {
    margin-bottom: 64px;
    padding: 28px 24px;
  }
}

/* Printing the page (also how the CV PDF is made): no bar, no buttons */
@media print {
  .site-header,
  .about-actions,
  .about-cta,
  .about-footer,
  .about-row-link {
    display: none !important;
  }
  /* The CV is text: no photo rail, no breadcrumbs */
  .about-hero {
    padding: 0 0 24px;
  }
  .about-gallery,
  .case-crumbs {
    display: none !important;
  }
  .about-block {
    padding: 24px 0;
    break-inside: avoid;
  }
  .about-row {
    break-inside: avoid;
  }
}
.about-row-link {
  gap: 4px;
}
@media print {
  /* Let sections continue on the next page; only rows stay whole. */
  .about-block {
    break-inside: auto;
  }
  .about-block-title {
    break-after: avoid;
  }
}
/* Comfortable line length and no one-word last lines. */
.about-page p,
.about-sublist li {
  text-wrap: pretty;
}
.about-row-body p,
.about-sublist {
  max-width: 62ch;
}
/* In DM Sans 62ch is ~680px (~90 characters a line); 34rem keeps it ~72. */
.about-row-body p,
.about-sublist {
  max-width: 34rem;
}

/* Hero: "About me" beside "See my work", as a quieter outline button. */
.big-hero-six .hero-cta--secondary {
  margin-left: 12px;
  background: transparent;
  color: #0e1e25;
  box-shadow: inset 0 0 0 1px rgba(14, 30, 37, 0.24);
}
.big-hero-six .hero-cta--secondary:hover {
  background: rgba(14, 30, 37, 0.06);
}

/* The home page's pastel trio (hero bubbles and "What I do as:"). The
   About page no longer uses it: it's black, white and grey. */
:root {
  --pastel-purple: #e7dcf9;
  --pastel-yellow: #fceebd;
  --pastel-blue: #d6e7fa;
}
/* Section numbers: an outlined pill; #525252 for 7:1 on white */
.about-page .about-num {
  color: #525252;
}
/* Print (and the CV PDF): keep the grey skill labels. */
@media print {
  body.about-page {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* =========================================================
   CASE PAGES: black and white, like GEO Scanner
   Every project page opens on a white section with dark text; the page
   below stays dark (#1d1d1d) and the hero's wave leads into it.
   ========================================================= */
body.case-page .case-hero,
body.case-page .section.case-hero {
  background: #fff;
  color: #1d1d1d;
}
body.case-page .case-hero :is(h1, h2, h3, p, a, .hero-title, .hero-label, .timestamp, .tint-color) {
  color: #1d1d1d;
}
body.case-page .case-hero .external-link:hover {
  border-color: #1d1d1d;
}
body.case-page .case-hero .wave-bottom path {
  fill: #1d1d1d;
}
/* No one-word last lines on the project pages either. */
body.case-page p,
body.case-page li {
  text-wrap: pretty;
}
/* Breadcrumbs: Home › Projects › this case study, on the white strip
   between the bar and the hero, lined up with the bar's logo. The
   projects page has them too (Home › Projects). One line;
   on a narrow phone the case study's name ends in "…". Links keep the
   bar's 44px tap height. */
.case-crumbs {
  background: #fff;
  color: #525252;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.3;
}
.case-crumbs ol {
  display: flex;
  align-items: center;
  width: 90%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 0 0;
  list-style: none;
}
/* body.case-page li sets text-wrap: pretty, which would undo nowrap */
body.case-page .case-crumbs li,
body.projects-page .case-crumbs li,
body.about-page .case-crumbs li,
body.contact-page .case-crumbs li {
  display: flex;
  flex: none;
  align-items: center;
  min-height: 44px;
  white-space: nowrap;
}
body.case-page .case-crumbs li:last-child,
body.projects-page .case-crumbs li:last-child,
body.about-page .case-crumbs li:last-child,
body.contact-page .case-crumbs li:last-child {
  flex: 0 1 auto;
  min-width: 0;
}
.case-crumbs svg {
  flex: none;
  margin: 0 6px;
  color: #a3a3a3;
}
body.case-page .case-crumbs a,
body.projects-page .case-crumbs a,
body.about-page .case-crumbs a,
body.contact-page .case-crumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #525252;
  text-decoration: none;
}
.case-crumbs [aria-current] {
  display: block;
  overflow: hidden;
  color: #0a0a0a;
  font-weight: 500;
  text-overflow: ellipsis;
}
@media (hover: hover) {
  body.case-page .case-crumbs a:hover,
  body.projects-page .case-crumbs a:hover,
  body.about-page .case-crumbs a:hover,
  body.contact-page .case-crumbs a:hover {
    color: #0a0a0a;
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}
body.case-page .case-crumbs a:focus-visible,
body.projects-page .case-crumbs a:focus-visible,
body.about-page .case-crumbs a:focus-visible,
body.contact-page .case-crumbs a:focus-visible {
  outline: 2px solid #0e1e25;
  outline-offset: 2px;
  border-radius: 4px;
}
@media print {
  .case-crumbs {
    display: none;
  }
}

/* =========================================================
   ALL PROJECTS (/projects/)
   Same shell as the About page (bar, footer, DM Sans, #e5e5e5 hairlines).
   Two groups of cards; each whole card is one link (the title's link
   stretches over it), so "Read the case study" is only a visual cue.
   ========================================================= */
/* Top padding is less than the About page's: the breadcrumbs above
   already make room, and 56px matches the gap on the case studies. */
.projects-intro {
  max-width: 44rem;
  padding: 56px 0 56px;
}
.projects-page h1 {
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.projects-page .projects-lead {
  margin-top: 16px;
  font-size: 18px;
  line-height: 1.55;
  color: #525252;
  text-wrap: pretty;
}
.projects-group {
  padding: 40px 0 72px;
  border-top: 1px solid #e5e5e5;
}
.projects-page .projects-group-title {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 28px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.pj-card {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
}
.pj-media {
  aspect-ratio: 16 / 10;
  margin-bottom: 20px;
  overflow: hidden;
  border: 1px solid rgba(14, 30, 37, 0.08);
  border-radius: 18px;
  background: #f5f5f5;
}
.pj-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
/* Phone apps: the screen peeks up out of a pastel card. */
.pj-media--phone {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 8%;
}
.pj-media--phone img {
  width: 40%;
  height: auto;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 12px 32px -12px rgba(14, 30, 37, 0.35);
  transform-origin: 50% 0;
}
.pj-media--purple {
  background: var(--pastel-purple);
}
.pj-media--yellow {
  background: var(--pastel-yellow);
}
.projects-page .pj-label {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.4;
  color: #666;
}
.projects-page .pj-title {
  margin-top: 6px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
}
.pj-link {
  color: #0a0a0a;
  text-decoration: none;
}
.pj-link::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 24px;
}
.pj-link:focus-visible {
  outline: none;
}
.pj-link:focus-visible::after {
  outline: 2px solid #0e1e25;
  outline-offset: 2px;
}
.projects-page .pj-desc {
  margin-top: 8px;
  color: #525252;
  text-wrap: pretty;
}
.pj-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: #0e1e25;
  font-size: 15px;
  font-weight: 600;
}
.pj-more svg {
  transition: transform 200ms ease-out;
}
@media (hover: hover) {
  .pj-card:hover .pj-media img {
    transform: scale(1.03);
  }
  .pj-card:hover .pj-more {
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  .pj-card:hover .pj-more svg {
    transform: translateX(3px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .pj-media img,
  .pj-more svg {
    transition: none;
  }
  .pj-card:hover .pj-media img,
  .pj-card:hover .pj-more svg {
    transform: none;
  }
}
@media (max-width: 960px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .projects-intro {
    padding: 40px 0 40px;
  }
  .projects-page .projects-lead {
    font-size: 17px;
  }
  .projects-group {
    padding: 32px 0 56px;
  }
  .projects-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
}

/* =========================================================
   SITE HEADER (every page)
   One sticky bar so you always know where you are and can get anywhere:
   the name (home) on the left; Home, Projects, About and the CV on the
   right. The current page is marked with aria-current and a soft pill;
   on a case study "Projects" is marked, since that's where it lives.
   Specific selectors (.site-header ...) beat .project-page a { color: #fff }.
   ========================================================= */
:root {
  --site-header-h: 64px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  box-sizing: border-box;
  height: var(--site-header-h);
  border-bottom: 1px solid #e5e5e5;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  color: #0a0a0a;
  font-family: var(--font-sans);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 90%;
  max-width: 1120px;
  height: 100%;
  margin: 0 auto;
}
/* inline-block, not flex: a flex item would drop the space before
   " Terentjeva". The padding makes it a 44px tap area. */
.site-header .site-logo {
  display: inline-block;
  padding: 13px 0;
  color: #0a0a0a;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 18px;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.site-header .site-nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  color: #525252;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.site-header .site-nav-link[aria-current] {
  background: rgba(14, 30, 37, 0.07);
  color: #0a0a0a;
}
.site-header .site-nav-cv {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-left: 10px;
  padding: 0 18px;
  border-radius: 999px;
  background: #0e1e25;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
@media (hover: hover) {
  .site-header .site-logo:hover,
  .site-header .site-nav-link:hover {
    color: #0a0a0a;
  }
  .site-header .site-nav-cv:hover {
    background: #2b3b43;
  }
}
.site-header a:focus-visible {
  outline: 2px solid #0e1e25;
  outline-offset: 2px;
  border-radius: 999px;
}
/* Home: the bar floats over the full-screen hero instead of pushing it
   down, a little more see-through so the hero's colour shows. */
.site-header--overlay {
  margin-bottom: calc(-1 * var(--site-header-h));
  border-bottom-color: rgba(14, 30, 37, 0.06);
  background: rgba(255, 255, 255, 0.6);
}
/* Phones: "Polina" (still home), no separate Home link, "CV". */
@media (max-width: 600px) {
  .site-logo-rest,
  .site-header .site-nav-home,
  .site-cv-long {
    display: none;
  }
  .site-header .site-nav-link {
    padding: 0 10px;
  }
  .site-header .site-nav-cv {
    margin-left: 6px;
    padding: 0 14px;
  }
}
@media print {
  .site-header {
    display: none;
  }
}
/* Home, Projects, About and Contact. On 780px and narrower they don't fit
   beside the theme toggle and the CV button, so js/site-nav.js folds
   them into "Menu" (it sets data-menu; without it they stay in the bar).
   The panel drops under the bar, as wide as the bar's content. */
.site-nav-pages {
  display: flex;
  align-items: center;
  gap: 2px;
}
.site-menu-btn {
  display: none;
}
@media (max-width: 780px) {
  .site-nav[data-menu] .site-menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 12px 0 14px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #0a0a0a;
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 150ms ease, scale 150ms cubic-bezier(0.23, 1, 0.32, 1);
  }
  .site-nav[data-menu] .site-menu-btn:active {
    scale: 0.97;
  }
  .site-nav[data-menu] .site-menu-btn svg {
    transition: rotate 200ms cubic-bezier(0.23, 1, 0.32, 1);
  }
  .site-nav[data-open] .site-menu-btn {
    background: rgba(14, 30, 37, 0.07);
  }
  .site-nav[data-open] .site-menu-btn svg {
    rotate: 180deg;
  }
  .site-menu-btn:focus-visible {
    outline: 2px solid #0e1e25;
    outline-offset: 2px;
  }
  .site-nav[data-menu] .site-nav-pages {
    position: absolute;
    top: calc(100% + 8px);
    right: 5%;
    left: 5%;
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(10, 10, 10, 0.08), 0 2px 8px rgba(10, 10, 10, 0.04);
    /* closing: quick fade, then hidden from keyboard and screen readers */
    transition: opacity 150ms ease, translate 150ms ease, visibility 0s linear 150ms;
  }
  .site-nav[data-menu]:not([data-open]) .site-nav-pages {
    visibility: hidden;
    opacity: 0;
    translate: 0 -6px;
    pointer-events: none;
  }
  .site-nav[data-open] .site-nav-pages {
    transition: opacity 200ms cubic-bezier(0.23, 1, 0.32, 1), translate 200ms cubic-bezier(0.23, 1, 0.32, 1), visibility 0s;
  }
  /* Home is back in the list (the bar hides it on phones). */
  .site-header .site-nav[data-menu] .site-nav-link {
    display: flex;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 10px;
    color: #262626;
    font-size: 17px;
  }
  .site-header .site-nav[data-menu] .site-nav-link[aria-current] {
    color: #0a0a0a;
  }
}
@media (max-width: 780px) and (hover: hover) and (pointer: fine) {
  .site-header .site-nav[data-menu] .site-nav-link:not([aria-current]):hover {
    background: rgba(14, 30, 37, 0.04);
  }
  .site-nav[data-menu] .site-menu-btn:hover {
    background: rgba(14, 30, 37, 0.07);
  }
}
@media (max-width: 780px) and (prefers-reduced-motion: reduce) {
  .site-nav[data-menu]:not([data-open]) .site-nav-pages {
    translate: none;
  }
  .site-nav[data-menu] .site-menu-btn svg {
    transition: none;
  }
}

/* =========================================================
   404 (404.html)
   The site header, then a short centred note with the memoji and two
   ways back, in the same buttons as the home page.
   ========================================================= */
.notfound {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 90%;
  max-width: 34rem;
  min-height: calc(100vh - var(--site-header-h));
  min-height: calc(100svh - var(--site-header-h));
  margin: 0 auto;
  padding: 48px 0 64px;
  box-sizing: border-box;
  text-align: center;
}
.notfound-memoji {
  width: 180px;
  height: auto;
  margin-bottom: 28px;
}
.notfound-page h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.notfound-page .notfound-text {
  margin-top: 14px;
  font-size: 18px;
  line-height: 1.55;
  color: #525252;
  text-wrap: pretty;
}
.notfound-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}
.notfound-btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(14, 30, 37, 0.24);
  color: #0e1e25;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
}
.notfound-btn--primary {
  box-shadow: none;
  background: #0e1e25;
  color: #fff;
}
@media (hover: hover) {
  .notfound-btn:hover {
    background: rgba(14, 30, 37, 0.06);
  }
  .notfound-btn--primary:hover {
    background: #2b3b43;
  }
}
.notfound-page .notfound-btn:focus-visible {
  outline: 2px solid #0e1e25;
  outline-offset: 3px;
  border-radius: 999px;
}
@media (max-width: 600px) {
  .notfound-memoji {
    width: 140px;
  }
  .notfound-page .notfound-text {
    font-size: 17px;
  }
}

/* The stat cards are a direct <ul> of .case-section, so the text-list rule
   above (padding-left 1.2em, max-width 680px) indented and narrowed them.
   Line them up with the heading. */
.project-container .case-section > .case-stats {
  max-width: none;
  padding-left: 0;
}

/* =========================================================
   CASE PAGES: "All case studies" at the bottom
   Replaces the old prev/next footer. Every project is a numbered row:
   this page is marked "You're here", the neighbours are tagged Previous
   and Next. With a mouse, a preview follows the cursor over a row
   (js/case-index.js); touch and narrow screens show thumbnails in the rows.
   ========================================================= */
.case-index {
  --case-index-ease: cubic-bezier(0.23, 1, 0.32, 1);
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0 96px;
  color: #fff;
}
.case-index a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.case-index-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.case-index .case-index-title {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8b8b8b;
}
.case-index-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #9a9a9a;
  transition: color 150ms ease-out;
}
.case-index-all:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  border-radius: 6px;
}
.case-index-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid #333;
}
.case-index-list > li {
  margin: 0;
  border-top: 1px solid #333;
}
.case-index-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto 24px;
  align-items: center;
  gap: 24px;
  min-height: 80px;
  padding: 12px 8px;
}
.case-index-row:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -2px;
  border-radius: 4px;
}
.case-index-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #8b8b8b;
}
.case-index-main {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  min-width: 0;
}
.case-index-name {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: #fff;
  transition: color 200ms ease-out;
}
.case-index-tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border: 1px solid #444;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #bdbdbd;
  white-space: nowrap;
}
.case-index-tag--next {
  border-color: #fff;
  background: #fff;
  color: #0a0a0a;
}
.case-index-meta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #9a9a9a;
  text-align: right;
  white-space: nowrap;
}
.case-index-arrow {
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 200ms ease-out, transform 200ms var(--case-index-ease);
}
/* This page: still listed so the set reads complete, but muted. */
.case-index-row.is-current .case-index-name {
  color: #7a7a7a; /* 3.9:1, large text */
}
.case-index-row.is-current .case-index-arrow {
  visibility: hidden;
}
a.case-index-row:focus-visible .case-index-arrow {
  opacity: 1;
  transform: none;
}
@media (hover: hover) and (pointer: fine) {
  .case-index-all:hover {
    color: #fff;
  }
  /* Point at one row and the others step back. */
  .case-index-list:has(a.case-index-row:hover) .case-index-name {
    color: #6e6e6e;
  }
  .case-index-list a.case-index-row:hover .case-index-name {
    color: #fff;
  }
  a.case-index-row:hover .case-index-arrow {
    opacity: 1;
    transform: none;
  }
}

/* Project pictures: a cover screenshot, or a phone on its pastel card
   (as on /projects/). Used for the row thumbnails and the preview. */
.case-index-media {
  position: relative;
  display: block;
  overflow: hidden;
  background: #262626;
}
.case-index-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.case-index-media--phone {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 8%;
}
.case-index-media--purple {
  background: var(--pastel-purple);
}
.case-index-media--yellow {
  background: var(--pastel-yellow);
}
.case-index-media--phone img {
  width: 40%;
  height: auto;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 12px 32px -12px rgba(14, 30, 37, 0.35);
}
.case-index-thumb {
  display: none;
}

/* Cursor preview, built by js/case-index.js. The outer box is moved by the
   script; the inner one fades and scales from the side nearest the cursor. */
.case-index-float {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: 300px;
  aspect-ratio: 16 / 10;
  pointer-events: none;
}
.case-index-float-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06);
  opacity: 0;
  transform: scale(0.92);
  transform-origin: left center;
  transition: opacity 200ms ease-out, transform 200ms var(--case-index-ease);
}
.case-index-float[data-side="left"] .case-index-float-inner {
  transform-origin: right center;
}
.case-index-float-inner.is-visible {
  opacity: 1;
  transform: none;
}
.case-index-shot {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 150ms ease-out;
}
.case-index-shot.is-active {
  opacity: 1;
}

/* Touch screens: no hover, so no preview; arrows stay visible. */
@media (hover: none), (pointer: coarse) {
  .case-index-float {
    display: none;
  }
  .case-index-arrow {
    opacity: 0.6;
    transform: none;
  }
}
/* Touch and narrow screens: the picture moves into the row. */
@media (hover: none), (pointer: coarse), (max-width: 760px) {
  .case-index-row {
    grid-template-columns: 64px minmax(0, 1fr) 20px;
    gap: 16px;
    min-height: 72px;
    padding: 12px 0;
  }
  .case-index-num,
  .case-index-meta {
    display: none;
  }
  .case-index-thumb {
    display: flex;
    width: 64px;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
  }
  .case-index-thumb.case-index-media--phone img {
    width: 48%;
    border-radius: 6px 6px 0 0;
  }
  .case-index-row.is-current .case-index-thumb {
    opacity: 0.5;
  }
  .case-index-name {
    font-size: 18px;
  }
  .case-index-tag {
    height: 22px;
    padding: 0 8px;
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .case-index-name,
  .case-index-arrow,
  .case-index-shot {
    transition: none;
  }
  .case-index-float-inner {
    transform: none;
    transition: opacity 150ms ease-out;
  }
}

/* =========================================================
   SITE FOOTER ("Bye bubble")
   Home, About and Projects. Bookends the hero: the memoji that says
   hello at the top says goodbye here, in the same four languages
   (js/site-footer.js), and the socials are stickers in the pastel trio
   on pastel purple. The white "desk" under the laptop holds the small
   print. Replaces the home's "Follow me on the internet" block with its
   grey footer, and the About/Projects hairline footer.
   Entrance (memoji rises, bubble pops from its tail) runs once, only when
   the script marks the footer [data-animate] before it's on screen, so
   without JS everything is simply visible.
   ========================================================= */
.site-footer {
  --site-footer-bg: #e7dcf9;
  --site-footer-ease: cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
  background: var(--site-footer-bg);
  color: #0e1e25;
  font-family: var(--font-sans);
}
.site-footer-wave {
  display: block;
  width: 100%;
  height: max(48px, 4.2vw);
  margin-bottom: -1px;
  /* the colour of whatever sits above the footer */
  background: var(--site-footer-above, #fff);
}
/* Case studies end on their dark "all case studies" list. */
.project-page .site-footer {
  --site-footer-above: #1d1d1d;
}
.site-footer-wave path {
  fill: var(--site-footer-bg);
}
.site-footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(200px, 26vw, 320px);
  align-items: end;
  gap: 24px 56px;
  width: 90%;
  max-width: 1120px;
  margin: 0 auto;
  padding-top: 40px;
}
.site-footer-copy {
  padding-bottom: 72px;
}
.site-footer .site-footer-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  text-wrap: balance;
}
.site-footer .site-footer-lead {
  max-width: 32rem;
  margin: 12px 0 0;
  opacity: 1;
  color: #525252;
  font-size: 18px;
  line-height: 1.5;
  text-wrap: pretty;
}

/* Stickers: each whole card is the link (the name's link stretches). */
.site-footer-stickers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}
.site-sticker {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(14, 30, 37, 0.08);
  border-radius: 20px;
  box-shadow:
    0 1px 2px rgba(14, 30, 37, 0.06),
    0 12px 24px -14px rgba(14, 30, 37, 0.22);
  rotate: var(--r, 0deg);
  transition:
    rotate 220ms var(--site-footer-ease),
    translate 220ms var(--site-footer-ease),
    scale 160ms var(--site-footer-ease);
}
.site-sticker--blue { background: #d6e7fa; }
.site-sticker--white { background: #fff; }
.site-sticker--yellow { background: #fceebd; }
.site-sticker img {
  display: block;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 10px;
}
.site-footer .site-sticker-link {
  color: #0e1e25;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}
.site-sticker-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.site-footer .site-sticker-desc {
  margin: 4px 0 0;
  opacity: 1;
  color: #525252;
  font-size: 14px;
  line-height: 1.4;
}
.site-sticker-arrow {
  position: absolute;
  top: 20px;
  right: 20px;
  opacity: 0.45;
  transition: opacity 150ms ease-out;
}
@media (hover: hover) and (pointer: fine) {
  .site-sticker:hover {
    rotate: 0deg;
    translate: 0 -4px;
  }
  .site-sticker:hover .site-sticker-arrow {
    opacity: 1;
  }
}
.site-sticker:active {
  scale: 0.97;
}
.site-sticker:has(.site-sticker-link:focus-visible) {
  outline: 2px solid #0e1e25;
  outline-offset: 3px;
}
.site-footer .site-sticker-link:focus-visible {
  outline: none;
}

/* Memoji and goodbye bubble */
.site-footer-me {
  position: relative;
  align-self: end;
}
.site-footer-memoji {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: -2px;
  transition:
    opacity 400ms ease-out,
    translate 600ms var(--site-footer-ease);
}
/* Above her head, in the free space over the memoji column, so the longest
   goodbye ("Спокойной ночи") never runs into the stickers. */
.site-footer-bubble {
  position: absolute;
  z-index: 1;
  top: -60px;
  right: 34%;
  padding: 12px 20px;
  border: 1px solid rgba(14, 30, 37, 0.1);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(14, 30, 37, 0.07), 0 1px 3px rgba(14, 30, 37, 0.06);
  color: #0e1e25;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  /* grows out of its tail, which points down at the memoji */
  transform-origin: 90% 100%;
  transition:
    opacity 200ms ease-out 380ms,
    scale 260ms var(--site-footer-ease) 380ms,
    translate 150ms ease-out;
}
.site-footer[data-animate]:not([data-in]) .site-footer-memoji {
  opacity: 0;
  translate: 0 32px;
}
.site-footer[data-animate]:not([data-in]) .site-footer-bubble {
  opacity: 0;
  scale: 0.8;
}
/* Tail: two dots toward the memoji, like the hero's hello bubble. */
.site-footer-bubble::before,
.site-footer-bubble::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(14, 30, 37, 0.1);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(14, 30, 37, 0.07);
}
.site-footer-bubble::before {
  right: 20px;
  bottom: -12px;
  width: 14px;
  height: 14px;
}
.site-footer-bubble::after {
  right: 10px;
  bottom: -24px;
  width: 7px;
  height: 7px;
}
@media (hover: hover) and (pointer: fine) {
  .site-footer-bubble:hover {
    translate: 0 -2px;
    transition-delay: 0ms;
  }
}
.site-footer-bubble:active {
  translate: 0 0;
}
.site-footer-bubble:focus-visible {
  outline: 2px solid #0e1e25;
  outline-offset: 3px;
}
.site-footer-bubble-text {
  display: inline-block;
  transition: opacity 200ms ease-out, transform 200ms ease-out;
}
.site-footer-bubble-text.is-out {
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 150ms ease-in, transform 150ms ease-in;
}

/* Desk: the small print */
.site-footer-desk {
  position: relative;
  border-top: 1px solid rgba(14, 30, 37, 0.08);
  background: #fff;
}
.site-footer-desk-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 24px;
  width: 90%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 0;
}
.site-footer .site-footer-desk p {
  margin: 0;
  opacity: 1;
  color: #666;
  font-size: 14px;
  line-height: 1.5;
}
.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
}
.site-footer .site-footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #525252;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 150ms ease-out;
}
@media (hover: hover) and (pointer: fine) {
  .site-footer .site-footer-nav a:hover {
    color: #0a0a0a;
  }
}
.site-footer .site-footer-nav a:focus-visible {
  outline: 2px solid #0e1e25;
  outline-offset: 2px;
  border-radius: 4px;
}

@media (max-width: 900px) {
  .site-footer-stickers {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    max-width: 26rem;
  }
  .site-sticker {
    flex-direction: row;
    align-items: center;
    padding: 16px 48px 16px 16px;
    /* full-width cards look skewed at the desktop angle; keep a hint of it */
    rotate: calc(var(--r, 0deg) * 0.4);
  }
  .site-sticker-arrow {
    top: 50%;
    margin-top: -8px;
  }
}
@media (max-width: 680px) {
  .site-footer-inner {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 24px;
  }
  .site-footer-copy {
    padding-bottom: 8px;
  }
  .site-footer .site-footer-lead {
    font-size: 16px;
  }
  .site-footer-me {
    justify-self: end;
    width: min(56vw, 220px);
    margin-top: 80px;
  }
  .site-footer-bubble {
    font-size: 16px;
    padding: 10px 16px;
  }
  .site-footer-desk-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 0 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .site-sticker,
  .site-sticker-arrow {
    transition: none;
  }
  .site-footer-memoji {
    transition: opacity 200ms ease-out;
  }
  .site-footer[data-animate]:not([data-in]) .site-footer-memoji {
    translate: 0 0;
  }
  .site-footer-bubble {
    transition: opacity 200ms ease-out 200ms;
  }
  .site-footer[data-animate]:not([data-in]) .site-footer-bubble {
    scale: 1;
  }
  .site-footer-bubble-text,
  .site-footer-bubble-text.is-out {
    transform: none;
  }
}
@media print {
  .site-footer {
    display: none !important;
  }
}

/* =========================================================
   FLIGHT TRACKER (project page)
   Same white hero and laptop mockup as Blue Bay; the body below keeps the
   dark case-page style. The data sources are cards like the stat cards
   (#333 border, 16px radius, mono labels).
   ========================================================= */
.flight-hero {
  height: auto;
  min-height: 80vh;
  padding-bottom: 140px;
}
.flight-hero .main-content-wrapper {
  align-items: center;
  gap: 48px;
}
.flight-hero .content {
  flex: 1 1 42%;
}
.flight-hero .showcase {
  flex: 1 1 58%;
}
.flight-hero .showcase img {
  height: auto;
}
.flight-hero .hero-links,
.ft-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
}
@media (max-width: 768px) {
  .flight-hero .main-content-wrapper {
    flex-direction: column;
    text-align: center;
  }
  .flight-hero .hero-links {
    justify-content: center;
  }
}
.flight-page .project-media {
  width: 100%;
  max-width: 900px;
}

/* Process: the three data sources, in the order they are joined. */
.project-container .case-section > .ft-steps,
.project-container .case-section > .ft-legend {
  max-width: none;
  padding-left: 0;
  list-style: none;
}
.ft-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 32px 0;
}
.ft-steps li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 24px 26px;
  border: 1px solid #333;
  border-radius: 16px;
}
.project-container .ft-steps .ft-step-label {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8b8b8b;
  opacity: 1;
}
.project-container .case-section .ft-steps h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.3;
  color: #fff;
}
.project-container .ft-steps p {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.5;
  color: #a3a3a3;
  opacity: 1;
}
.ft-step-meta {
  margin-top: auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: #2b2b2b;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.4;
  color: #d4d4d4;
}
@media (max-width: 760px) {
  .ft-steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Key screens: key to the two route-line colours in the app. */
.project-container .case-section > .ft-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 4px 0 0;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.4;
  color: #a3a3a3;
}
.ft-legend li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ft-swatch {
  width: 28px;
  height: 4px;
  border-radius: 999px;
}
.ft-swatch--flown {
  background: #3e66db;
}
.ft-swatch--ahead {
  background: #6b7385;
}
.ft-legend + .case-figure {
  margin-top: 16px;
}

/* Highlights: two lines of the app's console output. */
.ft-log {
  max-width: 680px;
  margin: 4px 0 20px;
  padding: 18px 20px;
  overflow-x: auto;
  border: 1px solid #333;
  border-radius: 12px;
  background: #141414;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: #d4d4d4;
  white-space: pre;
}
.ft-log code {
  font: inherit;
  color: inherit;
  background: none;
}

/* =========================================================
   CONTACT (/contact/)
   Same shell and greys as the About page: the intro on the left, the
   form on the right, stacked on tablets and phones. The form posts to
   Netlify Forms; js/contact-form.js sends it without leaving the page
   and shows each error under its field. Red is only for errors.
   ========================================================= */
body.contact-page {
  background: #fff;
  color: #0a0a0a;
  font-family: var(--font-sans);
  font-size: 16px;
}
.contact-page p {
  margin: 0;
  line-height: 1.6;
  opacity: 1;
}
.contact-page h1,
.contact-page h2 {
  margin: 0;
  font-family: var(--font-sans);
}
.contact-main {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: start;
  gap: 48px 88px;
  width: 90%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 0 120px;
}
.contact-page h1 {
  font-size: clamp(40px, 5.6vw, 72px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
  color: #0a0a0a;
  text-wrap: balance;
}
.contact-page .contact-lead {
  max-width: 32rem;
  margin-top: 24px;
  font-size: 19px;
  line-height: 1.55;
  color: #262626;
  text-wrap: pretty;
}
.contact-facts {
  margin: 40px 0 0;
  border-top: 1px solid #e5e5e5;
}
.contact-facts div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #e5e5e5;
}
.contact-facts dt {
  padding-top: 2px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: #525252;
}
.contact-facts dd {
  margin: 0;
  line-height: 1.6;
  color: #0a0a0a;
}
.contact-nowrap {
  white-space: nowrap;
}
.contact-facts a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: #c7c7c7;
  text-underline-offset: 4px;
}
@media (hover: hover) {
  .contact-facts a:hover {
    text-decoration-color: currentColor;
  }
}

/* Form */
.contact-form {
  display: grid;
  gap: 24px;
}
.contact-form[hidden],
.contact-sent[hidden] {
  display: none;
}
.contact-field {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.contact-field label,
.contact-field legend {
  padding: 0;
  color: #0a0a0a;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
}
.contact-topics {
  display: block;
}
.contact-topics legend {
  margin-bottom: 8px;
}
.contact-input {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 11px 14px;
  border: 1px solid #d4d4d4;
  border-radius: 12px;
  background: #fff;
  color: #0a0a0a;
  font: inherit;
  font-size: 16px; /* 16px or iOS zooms in on focus */
  line-height: 1.5;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
textarea.contact-input {
  min-height: 176px;
  resize: vertical;
}
@media (hover: hover) and (pointer: fine) {
  .contact-input:hover {
    border-color: #a3a3a3;
  }
}
.contact-input:focus {
  border-color: #0a0a0a;
  outline: 2px solid transparent; /* still shows in forced colours */
  box-shadow: 0 0 0 3px rgba(14, 30, 37, 0.12);
}
.contact-input[aria-invalid="true"] {
  border-color: #b42318;
}
.contact-input[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.14);
}
.contact-error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: #b42318;
  font-size: 14px;
}
.contact-page .contact-error {
  line-height: 1.4;
}
.contact-error[hidden] {
  display: none;
}
.contact-error svg {
  flex: none;
  margin-top: 1px;
}
.contact-topics .contact-error {
  margin-top: 8px;
}

/* "What it's about": radio buttons drawn as pills */
.contact-chips {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.contact-chips input {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.contact-chips label {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #d4d4d4;
  border-radius: 999px;
  background: #fff;
  color: #262626;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, scale 150ms cubic-bezier(0.23, 1, 0.32, 1);
}
@media (hover: hover) and (pointer: fine) {
  .contact-chips input:not(:checked) + label:hover {
    border-color: #a3a3a3;
    color: #0a0a0a;
  }
}
.contact-chips label:active {
  scale: 0.97;
}
.contact-chips input:checked + label {
  border-color: #0e1e25;
  background: #0e1e25;
  color: #fff;
}
.contact-chips input:focus-visible + label {
  outline: 2px solid #0e1e25;
  outline-offset: 2px;
}
.contact-topics[data-invalid] .contact-chips label {
  border-color: #b42318;
}

/* Spam trap: off screen for people, still in the form for bots */
.contact-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Something went wrong while sending */
.contact-form-error {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid #f4c7c2;
  border-radius: 12px;
  background: #fef3f2;
  color: #912018;
}
.contact-form-error[hidden] {
  display: none;
}
.contact-form-error svg {
  flex: none;
  margin-top: 3px;
}
.contact-page .contact-form-error p {
  font-size: 15px;
  line-height: 1.5;
}

/* Send */
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}
.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: #0e1e25;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 150ms ease, scale 150ms cubic-bezier(0.23, 1, 0.32, 1);
}
@media (hover: hover) and (pointer: fine) {
  .contact-submit:hover {
    background: #2b3b43;
  }
}
.contact-submit:active {
  scale: 0.97;
}
.contact-submit:focus-visible {
  outline: 2px solid #0e1e25;
  outline-offset: 3px;
}
.contact-submit[data-loading] {
  cursor: progress;
}
.contact-spinner {
  display: none;
  box-sizing: border-box;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: contact-spin 700ms linear infinite;
}
.contact-submit[data-loading] .contact-spinner {
  display: block;
}
.contact-submit[data-loading] .contact-submit-icon {
  display: none;
}
@keyframes contact-spin {
  to {
    rotate: 360deg;
  }
}
@media (prefers-reduced-motion: reduce) {
  .contact-spinner {
    animation-duration: 1.6s;
  }
}
.contact-page .contact-note {
  color: #525252;
  font-size: 14px;
}

/* Sent */
.contact-sent {
  padding: 40px;
  border-radius: 20px;
  background: #f5f5f5;
}
.contact-sent:focus {
  outline: none;
}
.contact-sent-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: #0e1e25;
  color: #fff;
}
.contact-page .contact-sent h2 {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #0a0a0a;
}
.contact-page .contact-sent p {
  margin-top: 8px;
  color: #525252;
}
.contact-sent-email {
  color: #0a0a0a;
  overflow-wrap: anywhere;
}
.contact-again {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 16px;
  padding: 0;
  border: 0;
  background: none;
  color: #0a0a0a;
  font: inherit;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: #c7c7c7;
  text-underline-offset: 4px;
  cursor: pointer;
}
@media (hover: hover) {
  .contact-again:hover {
    text-decoration-color: currentColor;
  }
}
.contact-again:focus-visible {
  outline: 2px solid #0e1e25;
  outline-offset: 3px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: no-preference) {
  .contact-sent:not([hidden]) {
    animation: contact-sent-in 240ms cubic-bezier(0.23, 1, 0.32, 1);
  }
}
@keyframes contact-sent-in {
  from {
    opacity: 0;
    translate: 0 8px;
  }
}

@media (max-width: 860px) {
  .contact-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding: 24px 0 88px;
  }
}
@media (max-width: 680px) {
  .contact-page .contact-lead {
    font-size: 17px;
  }
  .contact-sent {
    padding: 28px 24px;
  }
}
@media print {
  .contact-panel {
    display: none;
  }
}
