@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,200..800&display=swap");

/* Bricolage Grotesque, full width, quiet chrome, scroll/hover motion */

.ph-projects,
.ph-projects body,
.ph-projects input,
.ph-projects textarea,
.ph-projects button,
.ph-projects a,
.ph-projects h1,
.ph-projects h2,
.ph-projects h3,
.ph-projects p,
.ph-projects span,
.ph-projects li {
  font-family: "Bricolage Grotesque", sans-serif;
}

.ph-projects .mil-wrapper,
.ph-projects .mil-content,
.ph-projects .mil-main-transition,
.ph-projects section,
.ph-projects .ph-projects-block,
.ph-projects .ph-list {
  overflow: visible;
}

.ph-projects .mil-ball,
.ph-projects .mil-progress-track,
.ph-projects .mil-frame-bottom {
  display: none !important;
}

.ph-projects .mil-preloader {
  z-index: 200;
}

.ph-projects .mil-frame {
  height: 72px;
  padding: 16px 28px 0;
  z-index: 51;
}

.ph-projects .mil-menu-frame {
  z-index: 50;
}

.ph-projects .mil-menu-frame .mil-frame-top {
  display: none;
}

.ph-projects .mil-menu-frame.mil-active ~ .mil-frame .mil-logo {
  color: #fff;
}

.ph-projects .mil-menu-frame.mil-active ~ .mil-frame .mil-menu-btn span,
.ph-projects .mil-menu-frame.mil-active ~ .mil-frame .mil-menu-btn span:before,
.ph-projects .mil-menu-frame.mil-active ~ .mil-frame .mil-menu-btn span:after {
  background: #fff;
}

.ph-projects .mil-menu-frame.mil-active ~ .mil-content .ph-sticky-wrap,
.ph-projects .mil-menu-frame.mil-active ~ .mil-content .ph-to-top {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media screen and (min-width: 1201px) {
  .ph-projects .mil-frame {
    height: 72px;
    padding: 16px 0 0;
  }

  .ph-projects .mil-frame .mil-frame-top {
    width: 95%;
    margin: 0 auto;
    padding: 0;
    align-items: center;
  }

  .ph-projects .mil-frame .mil-frame-top .mil-logo {
    visibility: visible;
    pointer-events: all;
    color: #111;
    font-size: 36px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
  }

  .ph-projects .mil-frame-top .mil-menu-btn span,
  .ph-projects .mil-frame-top .mil-menu-btn span:before,
  .ph-projects .mil-frame-top .mil-menu-btn span:after {
    background: #111;
  }
}

.ph-projects {
  --ph-pin: 108px;
  font-weight: 400;
}

.ph-scroll-progress {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 2px;
  background: transparent;
  overflow: hidden;
}

.ph-scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: #111;
  transform: scaleX(0);
  transform-origin: left center;
}

.ph-hero {
  margin: 0 0 36px;
}

.ph-hero h1 {
  font-size: 96px;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.12;
  color: #111;
  margin: 0;
  will-change: transform, opacity;
}

.ph-word {
  display: inline-block;
}

.ph-sticky-wrap {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  padding-top: 8px;
  transition: box-shadow 0.45s ease, padding 0.45s ease;
}

.ph-sticky-wrap.is-compact {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  padding-top: 10px;
}

.ph-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  padding-bottom: 22px;
  transition: padding 0.45s ease;
}

.ph-sticky-wrap.is-compact .ph-chrome {
  padding-bottom: 16px;
}

.ph-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  min-width: 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.ph-filters::-webkit-scrollbar {
  display: none;
}

.ph-header-cta {
  display: none;
}

.ph-chrome .ph-btn-dark {
  flex-shrink: 0;
}

@media screen and (min-width: 1201px) {
  .ph-chrome {
    padding-right: 64px;
  }
}

.ph-container {
  width: 95%;
  max-width: 95%;
  margin: 0 auto;
  padding: 0;
}

.ph-page {
  background: #fff;
  padding: 140px 0 0;
  overflow: visible;
}

@media screen and (min-width: 1201px) {
  .ph-page {
    padding-top: 96px;
  }
}

.ph-btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 22px 0 24px;
  background: #111;
  color: #fff;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.35s ease, transform 0.35s ease;
}

.ph-btn-dark svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ph-btn-dark svg path {
  fill: none;
}

.ph-btn-dark:hover {
  background: #000;
  transform: translateY(-1px);
}

.ph-filter {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 20px;
  border: none;
  background: transparent;
  color: #111;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.ph-filter:hover {
  background: #f3f3f3;
}

.ph-filter.is-active,
.ph-filter.is-active:hover,
.ph-filter.is-active:focus {
  background: #111;
  color: #fff;
  outline: none;
}

.ph-list {
  display: flex;
  flex-direction: column;
  gap: 160px;
  padding-top: 56px;
  padding-bottom: 140px;
}

.ph-case {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.ph-case.is-hidden {
  display: none;
}

.ph-case-pin {
  position: relative;
  align-self: stretch;
  min-width: 0;
}

.ph-case-media {
  position: sticky;
  top: var(--ph-pin);
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: #eef2f6;
  height: min(68vh, calc(100vh - var(--ph-pin) - 24px));
  min-height: 400px;
  max-height: 620px;
}

.ph-case-media img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  display: block;
  will-change: transform;
}

.ph-case:hover .ph-case-media img {
  filter: brightness(1.03);
}

.ph-case-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0;
}

.ph-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0 0 20px;
  color: #9a9a9a;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ph-case-body h2 {
  font-size: 42px;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.28;
  color: #111;
  margin: 0 0 24px;
}

.ph-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.ph-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  background: #1a1a1a;
  color: #fff;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ph-pill svg,
.ph-flag {
  width: 16px;
  height: 12px;
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}

.ph-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid #e8e8e8;
  border-bottom: 1px solid #e8e8e8;
  margin-bottom: 28px;
}

.ph-meta-item {
  padding: 24px 0 26px;
}

.ph-meta-item:first-child {
  padding-right: 20px;
  border-right: 1px solid #e8e8e8;
}

.ph-meta-item:last-child {
  padding-left: 20px;
}

.ph-meta-label {
  display: block;
  margin-bottom: 12px;
  color: #b3b3b3;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ph-meta-item p {
  margin: 0;
  color: #111;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.55;
}

.ph-results {
  margin-bottom: 40px;
}

.ph-results ul {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.ph-results li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 14px;
  color: #111;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.5;
}

.ph-results li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c8c8c8;
}

.ph-explore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 22px 0 24px;
  margin-top: auto;
  align-self: flex-start;
  background: #ff5a1f;
  color: #fff;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.35s ease, transform 0.35s ease;
}

.ph-explore svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ph-explore svg path {
  fill: none;
}

.ph-explore:hover {
  background: #ff6d38;
  transform: translateY(-2px);
}

.ph-quote {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 28px;
  align-items: start;
  max-width: 840px;
  margin: 48px auto;
  padding: 28px 0;
}

.ph-quote.is-hidden {
  display: none;
}

.ph-quote-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
}

.ph-quote-avatar span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #fff;
  font-size: 25px;
  font-weight: 500;
  background: #3a3a3a;
}

.ph-quote p {
  margin: 0 0 18px;
  color: #222;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.5;
}

.ph-quote cite {
  display: block;
  font-style: normal;
}

.ph-quote strong {
  display: block;
  color: #111;
  font-size: 20px;
  font-weight: 500;
}

.ph-quote em {
  color: #888;
  font-size: 16px;
  font-style: normal;
}

.ph-contact {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  padding: 140px 0 180px;
}

.ph-contact-pin {
  position: sticky;
  top: 88px;
  align-self: start;
}

.ph-contact h2 {
  font-size: 88px;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.18;
  color: #111;
  margin: 0 0 28px;
}

.ph-contact-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-size: 18px;
  color: #555;
}

.ph-contact-meta a {
  color: #111;
  text-decoration: none;
  font-weight: 500;
}

.ph-contact-meta a:hover {
  color: #ff5a1f;
}

.ph-contact-body {
  min-width: 0;
}

.ph-contact form {
  max-width: none;
  margin: 0;
}

.ph-budget {
  margin: 10px 0 40px;
}

.ph-budget > span {
  display: block;
  margin-bottom: 18px;
  color: #111;
  font-size: 16px;
  font-weight: 500;
}

.ph-budget-opts {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
}

.ph-budget-opts label {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 128px;
  height: 52px;
  padding: 0 22px;
  border: 1.5px solid #e6e6e6;
  border-radius: 999px;
  background: #f6f6f4;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: #222;
  letter-spacing: -0.01em;
  user-select: none;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.ph-budget-opts label span {
  display: inline;
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

.ph-budget-opts input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
  margin: 0;
}

.ph-budget-opts label:hover {
  border-color: #111;
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.ph-budget-opts label:has(input:checked) {
  background: #ff9800;
  border-color: #ff9800;
  color: #111;
  box-shadow: 0 10px 24px rgba(255, 152, 0, 0.32);
}

.ph-budget-opts label:has(input:checked):hover {
  background: #ffa31a;
  border-color: #ffa31a;
  transform: translateY(-1px);
}

.ph-budget-opts label:has(input:focus-visible) {
  outline: 2px solid #111;
  outline-offset: 3px;
}

.ph-contact .mil-button,
.ph-contact-submit {
  opacity: 1 !important;
  visibility: visible !important;
  margin-top: 4px;
  pointer-events: auto;
}

.ph-note {
  margin-top: 16px;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.45);
}

.ph-to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 18px 0 16px;
  background: #111;
  color: #fff;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s ease, background 0.35s ease;
}

.ph-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.ph-to-top svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ph-to-top svg path {
  fill: none;
}

.ph-to-top:hover {
  background: #ff5a1f;
  color: #fff;
}

@media screen and (max-width: 1400px) {
  .ph-hero h1 {
    font-size: 72px;
  }

  .ph-case-body h2 {
    font-size: 36px;
  }

  .ph-contact h2 {
    font-size: 64px;
  }

  .ph-results li {
    font-size: 22px;
  }

  .ph-case-media {
    min-height: 420px;
  }
}

@media screen and (max-width: 1200px) {
  .ph-projects .mil-frame {
    height: 60px;
    padding: 0;
  }

  .ph-projects .mil-frame .mil-frame-top {
    height: 60px;
    padding: 0 16px 0 20px;
    gap: 12px;
  }

  .ph-projects .mil-frame .mil-frame-top .mil-logo {
    visibility: visible;
    pointer-events: all;
    color: #fff;
    font-size: 32px;
  }

  .ph-header-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    height: 34px;
    padding: 0 12px 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: all;
  }

  .ph-header-cta svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .ph-projects:has(.mil-menu-frame.mil-active) .ph-header-cta {
    opacity: 0;
    pointer-events: none;
  }

  .ph-chrome .ph-btn-dark {
    display: none;
  }

  .ph-projects .mil-frame .mil-frame-top .mil-menu-btn {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    transform: none;
  }

  .ph-projects .mil-frame .mil-frame-top .mil-menu-btn span,
  .ph-projects .mil-frame .mil-frame-top .mil-menu-btn span:before,
  .ph-projects .mil-frame .mil-frame-top .mil-menu-btn span:after {
    background: #fff;
  }

  .ph-sticky-wrap {
    top: 60px;
  }

  .ph-projects {
    --ph-pin: 160px;
  }

  .ph-contact-pin {
    top: 80px;
  }

  .ph-page {
    padding-top: 92px;
  }

  .ph-hero {
    margin-bottom: 18px;
  }

  .ph-hero h1 {
    font-size: 56px;
  }

  .ph-case-body h2 {
    font-size: 32px;
  }

  .ph-contact h2 {
    font-size: 48px;
  }

  .ph-case {
    gap: 32px;
  }

  .ph-contact {
    gap: 32px;
  }

  .ph-list {
    gap: 100px;
  }
}

@media screen and (max-width: 992px) {
  .ph-hero {
    margin-bottom: 24px;
  }

  .ph-hero h1 {
    font-size: 48px;
  }

  .ph-list {
    gap: 72px;
    padding-top: 40px;
    padding-bottom: 80px;
  }

  .ph-chrome {
    gap: 12px;
    padding-bottom: 16px;
  }

  .ph-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    min-width: 0;
    flex: 1;
  }

  .ph-filter {
    flex-shrink: 0;
  }

  .ph-case {
    grid-template-columns: 1fr;
    gap: 22px;
    min-height: 0;
  }

  .ph-case-media {
    position: static;
    min-height: 0;
    height: auto;
    max-height: none;
    aspect-ratio: 16 / 10;
  }

  .ph-case-pin {
    position: static;
  }

  .ph-case-body h2 {
    font-size: 30px;
  }

  .ph-contact {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 80px 0 100px;
  }

  .ph-contact-pin {
    position: static;
  }

  .ph-contact h2 {
    font-size: 40px;
  }
}

@media screen and (max-width: 768px) {
  .ph-container {
    width: 100%;
    max-width: none;
    padding: 0 20px;
  }

  .ph-projects .mil-frame,
  .ph-projects .mil-frame .mil-frame-top {
    height: 56px;
  }

  .ph-projects .mil-frame .mil-frame-top {
    padding: 0 8px 0 16px;
    gap: 8px;
  }

  .ph-projects .mil-frame .mil-frame-top .mil-logo {
    font-size: 28px;
  }

  .ph-sticky-wrap {
    top: 56px;
  }

  .ph-page {
    padding-top: 80px;
  }

  .ph-hero {
    margin-bottom: 14px;
  }

  .ph-hero h1 {
    font-size: 40px;
  }

  .ph-case-body h2 {
    font-size: 28px;
    margin-bottom: 18px;
  }

  .ph-results li {
    font-size: 18px;
  }

  .ph-chrome {
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
  }

  .ph-filters {
    width: 100%;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0;
  }

  .ph-filter {
    flex-shrink: 0;
    height: 36px;
    font-size: 12px;
    padding: 0 12px;
  }

  .ph-btn-dark,
  .ph-explore {
    height: 46px;
    font-size: 14px;
  }

  .ph-meta {
    grid-template-columns: 1fr;
  }

  .ph-meta-item:first-child {
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid #e8e8e8;
  }

  .ph-meta-item:last-child {
    padding-left: 0;
  }

  .ph-quote {
    grid-template-columns: 56px 1fr;
    gap: 16px;
    margin: 28px auto;
  }

  .ph-quote p {
    font-size: 20px;
  }

  .ph-contact h2 {
    font-size: 34px;
  }

  .ph-to-top {
    right: 16px;
    bottom: 16px;
    height: 46px;
    padding: 0 14px 0 12px;
    font-size: 12px;
  }
}

@media screen and (max-width: 480px) {
  .ph-container {
    padding: 0 16px;
  }

  .ph-page {
    padding-top: 80px;
  }

  .ph-hero {
    margin-bottom: 12px;
  }

  .ph-header-cta {
    height: 32px;
    padding: 0 10px 0 12px;
    font-size: 11px;
  }

  .ph-hero h1 {
    font-size: 34px;
    letter-spacing: -0.03em;
  }

  .ph-chrome {
    padding-bottom: 10px;
  }

  .ph-case-body h2 {
    font-size: 24px;
  }

  .ph-tags {
    font-size: 12px;
    gap: 8px 12px;
    margin-bottom: 14px;
  }

  .ph-pills {
    margin-bottom: 20px;
  }

  .ph-pill {
    height: 34px;
    font-size: 12px;
    padding: 0 12px;
  }

  .ph-results li {
    font-size: 16px;
  }

  .ph-list {
    gap: 56px;
    padding-top: 28px;
    padding-bottom: 64px;
  }

  .ph-quote {
    grid-template-columns: 1fr;
  }

  .ph-contact h2 {
    font-size: 28px;
    margin-bottom: 24px;
  }

  .ph-contact-meta {
    font-size: 15px;
    gap: 8px 16px;
  }

  .ph-budget-opts {
    gap: 8px;
  }

  .ph-budget-opts label {
    min-width: calc(50% - 8px);
    font-size: 14px;
    height: 46px;
    padding: 0 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ph-case-media,
  .ph-contact-pin {
    position: static;
  }

  .ph-hero h1,
  .ph-chrome,
  .ph-sticky-wrap,
  .ph-case-media img {
    transition: none;
  }
}
