@font-face {
  font-family: "CoFo";
  src: url("/assets/16cc6df95b6116df-O4F0jpUIRHgPtwKJ7oZZrwEUrEg.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "CoFo Mono";
  src: url("/assets/38b67a249c186ba2-g0uR9FUvUIHZYKuWmlWDEcrvjHg.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color: #292929;
  background: #fff;
  font-family: "CoFo", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
}

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

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

.hero-gallery {
  width: 100%;
  overflow: hidden;
  padding: 16px 0 0;
}

.hero-gallery-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: clean-marquee 90s linear infinite;
}

.hero-gallery-copy {
  display: contents;
}

.hero-gallery:hover .hero-gallery-track {
  animation-play-state: paused;
}

.hero-gallery-item {
  display: grid;
  flex: 0 0 328px;
  width: 328px;
  height: 328px;
  place-items: center;
  overflow: hidden;
  border-radius: 24px;
  color: var(--card-color);
}

.hero-gallery-item img,
.hero-gallery-item video {
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: cover;
  transition: transform 400ms ease;
}

.hero-gallery-item:hover img,
.hero-gallery-item:hover video {
  transform: scale(1.025);
}

.hero-gallery-item > span {
  max-width: 80%;
  font-size: 28px;
  line-height: 1;
}

.profile-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 284px 84px 196px;
  gap: 22px;
  align-items: center;
  width: max-content;
  margin: -4px auto 30px;
}

.profile-card {
  min-height: 226px;
  padding: 30px 34px;
  text-align: center;
  color: #ef5438;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.11);
  backdrop-filter: blur(12px);
}

.profile-card h1 {
  margin: 0 0 16px;
  font-size: 25px;
  line-height: 1;
  font-weight: 500;
}

.profile-card p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.25;
}

.profile-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.profile-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: #f4f1ef;
}

.profile-locales {
  display: grid;
  gap: 8px;
  padding: 14px 14px;
  color: #fff;
  border-radius: 18px;
  background: #232323;
}

.profile-locales a {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 6px;
  align-items: center;
  font-size: 14px;
  opacity: 0.82;
}

.profile-locales i {
  width: 16px;
  height: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.profile-locales a[aria-current="page"] {
  opacity: 1;
}

.profile-locales a[aria-current="page"] i::after {
  display: block;
  width: 7px;
  height: 7px;
  margin: 4px;
  content: "";
  border-radius: 50%;
  background: #fff;
}

.profile-photo {
  width: 196px;
  height: 196px;
  object-fit: cover;
  border: 9px solid #f1f1f1;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.project-list {
  display: grid;
  gap: 0;
  width: min(760px, calc(100vw - 40px));
  margin: -20px auto 0;
}

.project-section {
  padding: 0;
  overflow: hidden;
  border-top: 1px solid #e2e2e2;
  background: #fff;
}

.project-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  width: 100%;
  min-height: 88px;
  margin: 0;
  padding: 24px 0 28px;
}

.project-heading h2 {
  max-width: 470px;
  margin: 0;
  font-size: 21px;
  line-height: 1.08;
  font-weight: 430;
}

.project-heading span {
  color: #c8c8c8;
  font: 14px/1 "CoFo Mono", monospace;
}

.project-stage {
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: #fff;
}

.project-media-track {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  width: 100%;
  height: 376px;
  padding: 8px 0;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.project-media-track::-webkit-scrollbar {
  display: none;
}

.project-media {
  display: block;
  flex: 0 0 auto;
  width: auto;
  height: 360px;
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  background: transparent;
  scroll-snap-align: start;
}

.project-media img {
  width: auto;
  height: 100%;
  max-width: none;
  padding: 0;
  object-fit: cover;
}

.project-section:first-child .project-media-track {
  height: 96px;
}

.project-section:first-child .project-media {
  height: 80px;
}

.project-placeholder {
  display: grid;
  width: min(1100px, calc(100vw - 32px));
  height: min(58vw, 620px);
  margin: auto;
  padding: 9vw;
  place-items: center;
  color: var(--project-color);
  border-radius: 22px;
  background: color-mix(in srgb, var(--project-bg), #fff 14%);
  font-size: clamp(40px, 6vw, 92px);
  line-height: 0.92;
  text-align: center;
}

.project-summary {
  display: none;
  grid-template-columns: minmax(180px, 0.6fr) minmax(280px, 1.6fr) auto;
  gap: 36px;
  align-items: start;
  width: min(960px, calc(100vw - 40px));
  margin: 24px auto 0;
  padding: 26px 30px;
  color: var(--project-color);
  border-radius: 22px;
  background: var(--project-bg);
}

.project-summary > p {
  margin: 0;
  font-size: 19px;
  line-height: 1.32;
}

.project-summary > a {
  padding: 9px 12px;
  border: 1px solid currentColor;
  border-radius: 999px;
  white-space: nowrap;
}

.project-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
}

.project-metrics p {
  margin: 0;
}

.project-metrics small,
.project-metrics strong {
  display: block;
}

.project-metrics small {
  margin-bottom: 3px;
  font: 10px/1 "CoFo Mono", monospace;
  text-transform: uppercase;
}

.project-metrics strong {
  font-size: 19px;
  font-weight: 500;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 20px;
  width: min(960px, calc(100vw - 40px));
  margin: 44px auto 24px;
  padding-top: 24px;
  border-top: 1px solid #e2e2e2;
  font-size: 18px;
}

.site-footer p {
  margin: 0;
}

.case-main {
  min-height: 100vh;
  padding: 156px 20px 80px;
}

.case-locales {
  position: fixed;
  z-index: 10;
  top: 20px;
  right: 110px;
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(12px);
}

.case-locales a {
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 13px;
}

.case-locales i {
  display: none;
}

.case-locales a[aria-current="page"] {
  color: #fff;
  background: #161616;
}

.case-close {
  position: fixed;
  z-index: 9;
  top: 40px;
  right: 40px;
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: #f0d8d0;
  font-size: 42px;
  line-height: 1;
  font-weight: 200;
}

.case-header {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 34px 32px;
  width: min(960px, calc(100vw - 40px));
  margin: 0 auto 158px;
  padding: 40px 34px 44px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 9px 22px rgba(0, 0, 0, 0.1);
}

.case-header h1 {
  grid-column: 1 / -1;
  max-width: 820px;
  margin: 0;
  font-size: clamp(34px, 3vw, 38px);
  line-height: 0.95;
  font-weight: 460;
  letter-spacing: -0.035em;
}

.case-facts {
  display: grid;
  gap: 9px;
  margin: 0;
  font: 13px/1.1 "CoFo Mono", monospace;
  text-transform: uppercase;
}

.case-facts > div {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 6px;
}

.case-facts dt {
  color: #bbb;
}

.case-facts dd {
  margin: 0;
}

.case-facts dd span,
.case-facts dd strong {
  display: block;
}

.case-facts dd span + span {
  margin-top: 8px;
}

.case-facts dd strong {
  font-weight: 500;
}

.case-intro {
  margin: 0;
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.25;
}

html[lang="en"] .case-header h1 {
  text-transform: capitalize;
}

.case-story {
  display: grid;
  gap: 88px;
  width: min(960px, calc(100vw - 40px));
  margin: 0 auto;
}

.case-copy {
  max-width: 760px;
  margin: 0 auto;
  font-size: clamp(21px, 2.2vw, 31px);
  line-height: 1.24;
}

.case-copy p,
.case-copy h2,
.case-copy h3,
.case-copy ul,
.case-copy ol {
  margin: 0 0 1em;
}

.case-copy h2,
.case-copy h3 {
  font-size: 1.55em;
  line-height: 1;
  font-weight: 500;
}

.case-copy a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.case-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.case-media-grid figure {
  display: grid;
  min-height: 260px;
  margin: 0;
  place-items: center;
  overflow: hidden;
  border-radius: 22px;
  background: #f1f1f1;
}

.case-media-grid figure:nth-child(3n + 1):last-child,
.case-media-grid figure:nth-child(3n + 1):not(:has(+ figure)) {
  grid-column: 1 / -1;
}

.case-media-grid img,
.case-media-grid video {
  width: 100%;
  height: 100%;
  max-height: 860px;
  object-fit: contain;
}

.not-found {
  display: grid;
  min-height: 100vh;
  place-items: center;
}

.bug-report-layer {
  position: fixed;
  z-index: 1000;
  inset: 0;
  pointer-events: none;
}

.bug-report-layer[hidden] {
  display: none;
}

.bug-report-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  cursor: default;
  pointer-events: auto;
  border: 0;
  background: rgba(18, 18, 18, 0);
  transition: background 240ms ease;
}

.bug-report-sheet {
  position: absolute;
  right: 50%;
  bottom: 16px;
  width: min(620px, calc(100vw - 32px));
  padding: 10px 28px 26px;
  pointer-events: auto;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
  transform: translate(50%, calc(100% + 40px));
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
  backdrop-filter: blur(20px);
}

.bug-report-layer.is-open .bug-report-backdrop {
  background: rgba(18, 18, 18, 0.28);
}

.bug-report-layer.is-open .bug-report-sheet {
  transform: translate(50%, 0);
}

.bug-report-handle {
  width: 42px;
  height: 4px;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: #dedede;
}

.bug-report-heading {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
}

.bug-report-heading p {
  margin: 0 0 6px;
  color: #ef5438;
  font: 11px/1 "CoFo Mono", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bug-report-heading h2 {
  margin: 0;
  color: #252525;
  font-size: 30px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.bug-report-close {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  padding: 0 0 3px;
  place-items: center;
  cursor: pointer;
  color: #5b5b5b;
  border: 0;
  border-radius: 50%;
  background: #f1f1f1;
  font: 28px/1 "CoFo", sans-serif;
}

.bug-report-description {
  max-width: 500px;
  margin: 14px 0 18px;
  color: #6d6d6d;
  font-size: 15px;
  line-height: 1.35;
}

.bug-report-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.bug-report-form textarea {
  display: block;
  width: 100%;
  min-height: 146px;
  padding: 16px 18px;
  resize: vertical;
  color: #252525;
  border: 1px solid #dedede;
  border-radius: 16px;
  outline: none;
  background: #fafafa;
  font: 17px/1.35 "CoFo", Arial, sans-serif;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.bug-report-form textarea::placeholder {
  color: #a1a1a1;
}

.bug-report-form textarea:focus {
  border-color: #ef5438;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(239, 84, 56, 0.12);
}

.bug-report-error {
  margin: 10px 2px 0;
  color: #bc2f1d;
  font-size: 14px;
}

.bug-report-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 18px;
}

.bug-report-actions button {
  min-height: 44px;
  padding: 0 18px;
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  font: 15px/1 "CoFo", Arial, sans-serif;
}

.bug-report-cancel {
  color: #555;
  background: #f0f0f0;
}

.bug-report-submit {
  color: #fff;
  background: #ef5438;
}

.bug-report-submit:disabled {
  cursor: wait;
  opacity: 0.58;
}

.bug-report-toast {
  position: fixed;
  z-index: 1001;
  right: 50%;
  bottom: 24px;
  max-width: calc(100vw - 32px);
  padding: 12px 17px;
  pointer-events: none;
  color: #fff;
  border-radius: 999px;
  background: #252525;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  font-size: 14px;
  opacity: 0;
  transform: translate(50%, 14px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.bug-report-toast.is-visible {
  opacity: 1;
  transform: translate(50%, 0);
}

@keyframes clean-marquee {
  to {
    transform: translateX(calc(-50% - 9px));
  }
}

@media (max-width: 760px) {
  .hero-gallery-item {
    flex-basis: 78vw;
    width: 78vw;
    height: 56vw;
  }

  .profile-shell {
    grid-template-columns: 1fr 72px;
    gap: 12px;
    width: calc(100vw - 32px);
    margin-top: 18px;
  }

  .profile-card {
    min-height: auto;
    padding: 24px 20px;
  }

  .profile-photo {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 126px;
    height: 126px;
    margin: 0 auto -40px;
    transform: translateY(-58px);
  }

  .profile-card,
  .profile-locales {
    grid-row: 2;
  }

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

  .project-list {
    margin-top: 0;
  }

  .project-summary > a {
    width: max-content;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .case-main {
    padding: 110px 12px 56px;
  }

  .case-locales {
    top: 14px;
    right: 80px;
  }

  .case-close {
    top: 12px;
    right: 14px;
    width: 54px;
    height: 54px;
  }

  .case-header {
    grid-template-columns: 1fr;
    gap: 26px;
    width: 100%;
    margin-bottom: 80px;
    padding: 26px 22px 30px;
  }

  .case-header h1 {
    font-size: 38px;
  }

  .case-story {
    gap: 52px;
    width: 100%;
  }

  .case-copy {
    padding: 0 10px;
    font-size: 21px;
  }

  .case-media-grid {
    grid-template-columns: 1fr;
  }

  .case-media-grid figure {
    grid-column: auto !important;
  }

  .bug-report-sheet {
    bottom: 0;
    width: 100%;
    padding: 10px 18px max(18px, env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
  }

  .bug-report-heading h2 {
    font-size: 27px;
  }

  .bug-report-form textarea {
    min-height: 132px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-gallery-track {
    animation: none;
  }
}
