@font-face {
  font-family: "Chivo";
  src: url("assets/chivo/Chivo-Light.ttf") format("truetype");
  font-weight: 100;
  font-style: normal;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #000;
  color: #f2f2f2;
  font-family: "Chivo", sans-serif;
  font-weight: 200;
  cursor: url("assets/mousereg.svg") 8 8, auto;
}

a,
button,
.project-card,
.project-image-link,
.related-project-card,
.related-project-meta{
  cursor: url("assets/mouseclick.svg") 8 8, pointer;
}

.play-gallery{
    cursor: url("assets/mousereg.svg") 8 8, pointer;
}

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

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

.project-page {
  width: 100%;
  min-height: 100vh;
  background: #000;
}

/* top bar */
.project-chrome {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 50;
  pointer-events: none;
}

.project-chrome > * {
  pointer-events: auto;
}

.site-title {
  font-size: 1rem;
  line-height: 1;
}

.site-title:hover {
  color: #4da3ff;
}

.top-nav {
  display: flex;
  gap: 6px;
}

.top-nav a {
  font-size: 1rem;
  line-height: 1;
  color: #f0f0f0;
  transition: color 0.15s ease;
}

.top-nav a::after {
  content: ",";
  margin-right: 4px;
}

.top-nav a:last-child::after {
  content: "";
  margin-right: 0;
}

.top-nav a:hover,
.top-nav a.active {
  color: #4da3ff;
  text-decoration: underline;
}

/* scrollable page content */
.project-content {
  width: 100%;
  padding: 60px 40px 60px 40px;
}

.bravecamp-page .project-hero img {
  width: 80%;
  margin: 0 auto; /* ← THIS centers it */
  padding-bottom: 20px;
}

.bravecamp-page .project-gallery.single img.icons-img {
  width: 80%;
  height: auto;
  margin: 0 auto;
}

.project-hero {
  width: 100%;
  margin-bottom: 20px;
}

.project-hero img {
  width: 100%;
  max-height: 75vh;
  object-fit: cover;
}

.stalked-page .project-hero img {
  object-position: center;
  width: 100%;
  max-height: 75vh;
  object-fit: cover;
}

.lately-page .project-hero img {
  object-position: center -100px;
  width: 100%;
  max-height: 75vh;
  object-fit: cover;
}

.gems-page .project-hero {
  display: flex;
  justify-content: center;
}

.gems-page .project-hero video {
  width: 80%;
  max-height: 78vh;  /* ↓ reduce this (try 50–65vh) */
  object-fit: cover;
  margin: 0 auto;
}

.project-hero video {
  width: 100%;
  max-height: 78vh;  /* ↓ reduce this (try 50–65vh) */
  object-fit: cover;
}

.project-gallery.single video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  margin-bottom:0;
}

.stalked-page .two-up-1 {
  object-fit: cover;
  object-position: left top;
}

.lately-page .project-gallery.painpoints figure {
  height: auto;
}

.lately-page .project-gallery.painpoints img {
  height: auto;
  object-fit: contain;
}

.phone-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.phone-label {
  margin-top: 12px;
  font-size: 0.9rem;
  color: #9f9f9f;
  text-align: center;
  line-height: 1.1;
}

.phone-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  width: 72%;
  margin: 40px auto;
  justify-items: center;
}

.phone {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 9 / 19;
  border-radius: 40px;
  overflow: hidden;
}

.phone .screen-media {
  position: absolute;
  top: 4.8%;
  left: 6.2%;
  width: 87.6%;
  height: 92%;
  object-fit: cover;
  z-index: 1;
  border-radius: 28px;
}

.phone .still-screen {
  top: 4%;
  left: 6%;
  width: 88%;
  height: 92%;
  object-fit: cover;
  border-radius: 28px;
}

.phone .frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 2;
  pointer-events: none;
}

.project-gallery.two-up img.styleguide {
  width: 105%;
  height: 100%;
  object-fit: contain;
  margin: auto;
  display: block;
}

.project-gallery.two-up video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-intro {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 36px;
  margin-bottom: 60px;
  align-items: start;
}

.project-title {
  font-size: 1.1rem;
}

.project-subtitle {
  font-size: 1.1rem;
  color: #9f9f9f;
}

.project-summary {
  max-width: 100%;
  font-size: 1.1rem;
  line-height: 1.15;
}

.context-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.context-row {
  display: grid;
  grid-template-columns: 180px 1fr; /* controls alignment */
}

.context-row span:first-child {
  color: #9f9f9f;
}

.context-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.context-block span {
  color: #9f9f9f;
  margin-right: 6px;
}

.project-detail-group{
    margin-bottom: 40px;
}

.project-detail-group .project-detail-row {
  margin-top: 0;
  margin-bottom: 10px;
}

.project-detail-row {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 36px;
  margin-bottom: 40px;
  margin-top:20px;
  align-items: start;
}

.detail-label {
  font-size: 1.1rem;
  line-height: 1.15;
  color: #9f9f9f;
}

.reflection-row {
  margin-top: 60px;
}

.detail-text {
  max-width: 100%;
  font-size: 1.1rem;
  line-height: 1.15;
}

.project-meta {
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
}

.project-meta-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 1.1rem;
  line-height: 1.15;
  color: #9f9f9f;
}

.detail-list {
  margin: 0;
  padding-left: 16px; /* controls indent */
}

.detail-list li {
  margin-bottom: 4px;
  line-height: 1.15;
}

.stalked-video-2 {
  width: 100%;
  height: 200px;        /* adjust */
  object-fit: cover;
  object-position: center top;
  display: block;
}

.detail-text a {
  color: #f2f2f2;
  text-decoration: underline;
  text-underline-offset: 3px; /* makes it feel more intentional */
  transition: color 0.15s ease;
}

.detail-text a:hover {
  color: #4da3ff;
}

.project-intro a {
  color: #f2f2f2;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.project-intro a:hover {
  color: #4da3ff;
}

.project-gallery {
  margin-bottom: 0;
}

.project-content > * + * {
  margin-top: 20px;
}

.project-gallery.single figure,
.project-gallery.two-up figure {
  margin: 0;
}

.project-gallery.single img {
  width: 100%;
  height:100%;
}

.project-gallery.two-up {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.project-gallery.two-up figure {
  height: 870px; /* adjust this */
  overflow: hidden;
}

.project-gallery.two-up img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-endnote {
  margin-top: 100px;
  margin-bottom: 40px;
}

.project-endnote p {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.15;
  color: #f2f2f2;
}

.project-gallery.single figure.gif-wrap {
  display: flex;
  justify-content: center;
}

.project-gallery.single figure.gif-wrap img.gif-small {
  width: 70%;   /* adjust this */
  height: auto;
}

.related-projects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 0px;
}

.related-project-card {
  cursor: pointer;
}

.related-image-link {
  display: block;
  width: 100%;
  background: #111;
  aspect-ratio: 2 / 1;
  overflow: hidden;
}

.related-image-link img,
.related-image-link video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.related-project-meta {
  margin-top: 15px;
  position: relative;
  min-height: 38px;
  max-width: 100%;
  font-size: 0.95rem;
  line-height: 1.02;
  color: #e8e8e8;
  max-width: 760px;
}

.meta-subtitle{
    color: #9f9f9f;
  font-size: 0.95rem;
  margin-top: 4px;
}

/* MATCH HOMEPAGE HOVER BEHAVIOR */
.related-project-meta.hover-description {
  position: relative;
}

.related-project-meta .meta-default,
.related-project-meta .meta-hover {
  transition: opacity 0.16s ease;
}

.related-project-meta .meta-hover {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  width: 100%;
  color: #9f9f9f;
}

.related-project-meta:hover .meta-default {
  opacity: 0;
}

.related-project-meta:hover .meta-hover {
  opacity: 1;
}

/* PLAY PAGE */
.play-page {
  background: #000;
}

.play-gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  width: calc(100% - 80px);
  margin: 0 40px;
  padding-top: 90px;   /* clears fixed header */
  padding-bottom: 70px;
  align-items: start;
  grid-auto-flow: dense;
}

.play-item {
  min-width: 0;
}

.play-item.portrait {
  grid-column: span 3;
}

.play-item.wide {
  grid-column: span 9;
}

.play-item.landscape {
  grid-column: span 5;
}

.play-item.square {
  grid-column: span 4;
}

.play-item.large {
  grid-column: span 5;
}

.play-media {
  display: block;
  width: 100%;
  background: #111;
  overflow: hidden;
}

.play-item.portrait .play-media {
  aspect-ratio: 3 / 4;
}

.play-item.square .play-media {
  aspect-ratio: 1 / 1;
}

.play-item.landscape .play-media {
  aspect-ratio: 4 / 3;
}

.play-item.wide .play-media {
  aspect-ratio: 16 / 9;
}

.play-media img,
.play-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-caption {
  margin-top: 10px;
  max-width: 95%;
  font-size: 0.95rem;
  line-height: 1.15;
  color: #f0f0f0;
}

.play-title {
  display: inline;
}

.play-year {
  display: inline;
  margin-left: 6px;
  color: #7d7d7d;
}

.play-about {
  display: block;
  margin-top: 4px;
  color: #f0f0f0;
}

.play-caption a {
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.play-caption a:hover {
  color: #4da3ff;
}

.play-media:hover img,
.play-media:hover video {
  opacity: 0.94;
}

/* ABOUT PAGE */
.about-page {
  background: #000;
}

.about {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1fr);
  gap: 36px;
  width: calc(100% - 80px);
  margin: 0 40px;
  padding-top: 110px; /* clears fixed header */
  padding-bottom: 60px;
  align-items: start;
}

.about-images {
  position: sticky;
  top: 96px;
  align-self: start;
}

.about-img-large {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
}

.about-text {
  margin-top: 0;
  max-width: 720px;
}

.about-text h1 {
  font-size: 3rem;
  line-height: 0.95;
  margin: 0 0 6px 0;
}

.about-text h2 {
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.05;
  margin: 0 0 24px 0;
  color: #e0e0e0;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.25;
  color: #cfcfcf;
  margin: 0 0 18px 0;
  max-width: 100%;
}

.about-text em {
  color: #7fb7ff;
  font-style: italic;
}

.about-meta {
  margin-top: 10px;
  color: #9f9f9f;
  opacity: 0.8;
}

.reading-list {
  margin-top: 44px;
}

.reading-title {
  color: #9f9f9f;
  margin: 0 0 10px 0;
}

.reading-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.reading-list li {
  margin-bottom: 6px;
  color: #bdbdbd;
  line-height: 1.25;
}

.connect {
  margin-top: 56px;
  color: #9f9f9f;
  opacity: 0.8;
}

.connect p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
}

.connect a {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: #f2f2f2;
  transition: color 0.15s ease;
}

.connect a:hover {
  color: #4da3ff;
}

/* tablet */
@media (max-width: 1024px) {
  .project-chrome {
    padding: 20px 24px;
  }

  .project-content {
    padding: 72px 24px 48px 24px;
  }

  .project-intro {
    grid-template-columns: 180px 1fr;
    gap: 24px;
  }

  .project-text-grid {
    gap: 24px;
  }

  .project-detail-row {
    grid-template-columns: 180px 1fr;
    gap: 24px;
  }

    .play-gallery {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    width: calc(100% - 48px);
    margin: 0 24px;
    gap: 18px;
    padding-top: 84px;
    padding-bottom: 48px;
  }

  .play-item.wide,
  .play-item.landscape,
  .play-item.square.large {
    grid-column: span 8;
  }

  .play-item.square {
    grid-column: span 4;
  }

  .play-item.portrait {
    grid-column: span 4;
  }

  .play-caption {
    max-width: 100%;
  }

    .about {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    width: calc(100% - 48px);
    margin: 0 24px;
    padding-top: 96px;
    padding-bottom: 48px;
  }

  .about-images {
    top: 84px;
  }

  .about-text h1 {
    font-size: 2.4rem;
  }

  .about-text h2 {
    font-size: 1.25rem;
    margin-bottom: 20px;
  }

  .connect {
    margin-top: 44px;
  }
}

/* mobile */
@media (max-width: 768px) {
  .project-chrome {
    padding: 12px 16px;
  }

  .site-title {
    font-size: 0.95rem;
  }

  .top-nav a {
    font-size: 0.9rem;
  }

  .project-content {
    padding: 64px 16px 36px 16px;
  }

  .project-hero img {
    max-height: none;
  }

  .project-intro {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 40px;
  }

  .project-title,
  .project-subtitle,
  .project-summary,
  .text-block h2,
  .text-block p {
    font-size: 0.9rem;
  }

  .project-subtitle {
    color: #9f9f9f;
    opacity: 0.75;
  }

  .project-text-grid,
  .project-gallery.two-up {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .project-detail-row {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 32px;
  }

  .detail-label,
  .detail-text {
    font-size: 0.9rem;
  }

  .related-projects {
  grid-template-columns: 1fr;
  gap: 20px;
}

.related-project-card {
  width: 100%;
}

.related-image-link {
  aspect-ratio: 1.45 / 1;
}

.related-project-meta {
  margin-top: 10px;
  min-height: auto;
  font-size: 0.9rem;
  line-height: 1.08;
}

.phone-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

    .project-chrome {
    padding: 12px 16px;
    align-items: flex-start;
    gap: 10px;
  }

  .top-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: 4px;
  }

  .site-title,
  .top-nav a {
    font-size: 0.9rem;
  }

  .play-gallery {
    grid-template-columns: 1fr;
    width: calc(100% - 32px);
    margin: 0 16px;
    gap: 18px;
    padding-top: 72px;
    padding-bottom: 36px;
  }

  .play-item,
  .play-item.portrait,
  .play-item.wide,
  .play-item.landscape,
  .play-item.square,
  .play-item.large,
  .play-item.square.large {
    grid-column: span 1;
  }

  .play-item .play-media {
    aspect-ratio: auto;
  }

  .play-media img,
  .play-media video {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .play-caption {
    max-width: 100%;
    font-size: 0.9rem;
    line-height: 1.15;
  }

  .play-year {
    margin-left: 4px;
  }

  .play-about {
    margin-top: 6px;
  }

  .project-chrome {
    padding: 12px 16px;
    align-items: flex-start;
    gap: 10px;
  }

  .top-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: 4px;
  }

  .site-title,
  .top-nav a {
    font-size: 0.9rem;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 20px;
    width: calc(100% - 32px);
    margin: 0 16px;
    padding-top: 76px;
    padding-bottom: 36px;
  }

  .about-images {
    position: static;
    top: auto;
  }

  .about-img-large {
    width: 100%;
    max-width: 100%;
  }

  .about-text {
    max-width: 100%;
  }

  .about-text h1 {
    font-size: 2rem;
    margin-bottom: 4px;
  }

  .about-text h2 {
    font-size: 1.1rem;
    margin-bottom: 18px;
  }

  .about-text p,
  .about-meta,
  .reading-title,
  .reading-list li,
  .connect p {
    font-size: 0.9rem;
    line-height: 1.25;
  }

  .reading-list {
    margin-top: 32px;
  }

  .connect {
    margin-top: 36px;
  }
}

/* small mobile */
@media (max-width: 480px) {
  .project-chrome {
    padding: 10px 12px;
  }

  .project-content {
    padding: 56px 12px 28px 12px;
  }

  .top-nav a,
  .site-title,
  .project-title,
  .project-subtitle,
  .project-summary,
  .text-block h2,
  .text-block p {
    font-size: 0.84rem;
  }

  .detail-label,
  .detail-text {
    font-size: 0.84rem;
  }

  .related-image-link {
  aspect-ratio: 1.3 / 0.8;
}

  .project-chrome {
    padding: 10px 12px;
  }

  .site-title,
  .top-nav a {
    font-size: 0.82rem;
  }

  .play-gallery {
    width: calc(100% - 24px);
    margin: 0 12px;
    padding-top: 64px;
    padding-bottom: 28px;
    gap: 16px;
  }

  .play-caption {
    font-size: 0.84rem;
  }

  .project-chrome {
    padding: 10px 12px;
  }

  .site-title,
  .top-nav a {
    font-size: 0.82rem;
  }

  .about {
    width: calc(100% - 24px);
    margin: 0 12px;
    padding-top: 68px;
    padding-bottom: 28px;
    gap: 16px;
  }

  .about-text h1 {
    font-size: 1.7rem;
  }

  .about-text h2 {
    font-size: 1rem;
  }

  .about-text p,
  .about-meta,
  .reading-title,
  .reading-list li,
  .connect p {
    font-size: 0.84rem;
  }
}