/* =====================================================
   PHIL FORMS
===================================================== */

.phil-form-page {
  position: relative;

  min-height: 100vh;

  padding:
    clamp(3.5rem, 7vw, 6rem)
    0
    clamp(6rem, 10vw, 9rem);
}


.phil-form-container {
  width: min(
    calc(100% - (var(--phil-content-padding) * 2)),
    var(--phil-container-width)
  );

  margin: 0 auto;
}


/* =====================================================
   FORM HEADER
===================================================== */

.phil-form-header {
  max-width: 820px;

  margin-bottom: clamp(3rem, 6vw, 5rem);
}


.phil-form-eyebrow {
  margin: 0 0 0.65rem;

  color: var(--phil-pink);

  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;

  text-transform: uppercase;
}


.phil-form-header h1 {
  margin: 0;

  color: var(--phil-white);

  font-size: clamp(2.6rem, 6vw, 5.25rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.95;
}


.phil-form-intro {
  max-width: 760px;

  margin: 1.5rem 0 0;

  color: var(--phil-white);

  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 400;
  line-height: 1.55;
}


/* =====================================================
   PROJECT FORM
===================================================== */

.phil-project-form {
  display: flex;
  flex-direction: column;

  gap: 1rem;
}


/* =====================================================
   ACCORDION FORM SECTIONS
===================================================== */

.phil-form-section {
  overflow: hidden;
  margin-bottom: 20px;

  color: var(--phil-white);
  background: var(--phil-white-06);

  border: 1px solid var(--phil-white-25);
  border-radius: var(--phil-radius-medium);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 42px rgba(38, 34, 98, 0.12);

  transition:
    background-color 180ms ease,
    border-color 180ms ease;
}


.phil-form-section:hover {
  background: var(--phil-white-08);
  border-color: var(--phil-white-40);
}


.phil-form-section[open] {
  background: var(--phil-white-08);
  border-color: var(--phil-white-40);
}


/* =====================================================
   FORM SECTION SUMMARY
===================================================== */

.phil-form-section summary {
  position: relative;

  display: flex;
  min-height: 88px;

  align-items: center;

  padding:
    1.4rem
    5.25rem
    1.4rem
    clamp(1.4rem, 3vw, 2.4rem);

  color: var(--phil-white);

  cursor: pointer;
  list-style: none;

  font-size: clamp(1.05rem, 2vw, 1.4rem);
  font-weight: 700;
  line-height: 1.2;

  transition:
    background-color 180ms ease,
    color 180ms ease;
}


.phil-form-section summary::-webkit-details-marker {
  display: none;
}


.phil-form-section summary::marker {
  content: "";
}


.phil-form-section summary:hover {
  background: var(--phil-white-04);
}


.phil-form-section summary:focus-visible {
  outline: 3px solid var(--phil-pink);
  outline-offset: -3px;
}


/* =====================================================
   FORM SECTION PLUS / MINUS
===================================================== */

.phil-form-section summary::after {
  content: "+";

  position: absolute;
  top: 50%;
  right: clamp(1.25rem, 3vw, 2rem);

  display: flex;
  width: 44px;
  height: 44px;

  align-items: center;
  justify-content: center;

  color: var(--phil-white);
  background: var(--phil-navy);

  border: 2px solid var(--phil-white);
  border-radius: 50%;

  font-size: 1.65rem;
  font-weight: 300;
  line-height: 1;

  transform: translateY(-50%);

  transition:
    transform 180ms ease,
    background-color 180ms ease;
}


.phil-form-section[open] summary::after {
  content: "−";

  background: var(--phil-pink);

  transform:
    translateY(-50%)
    rotate(180deg);
}


/* =====================================================
   SECTION CONTENT
===================================================== */

.phil-form-section-content {
  padding:
    clamp(1.75rem, 4vw, 3rem)
    clamp(1.4rem, 3vw, 2.4rem)
    clamp(2.25rem, 5vw, 3.5rem);

  border-top: 1px solid var(--phil-white-18);
}


.phil-form-section-intro {
  max-width: 760px;

  margin:
    0
    0
    clamp(1.75rem, 3vw, 2.5rem);

  color: rgba(255, 255, 255, 0.88);

  font-size: 0.98rem;
  line-height: 1.55;
}


/* =====================================================
   FORM GRIDS
===================================================== */

.phil-form-grid {
  display: grid;
  grid-template-columns: 1fr;

  gap:
    clamp(1.5rem, 3vw, 2rem)
    clamp(1.5rem, 3vw, 2.25rem);
}


.phil-form-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}


.phil-form-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}


.phil-form-field {
  min-width: 0;
}


.phil-form-field-wide {
  grid-column: 1 / -1;
}


/* =====================================================
   LABELS
===================================================== */

.phil-form-field label {
  display: block;

  margin: 0 0 0.55rem;

  color: var(--phil-white);

  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.3;
}


.phil-form-required {
  margin-left: 0.2rem;

  color: var(--phil-pink);

  font-size: 1rem;
  font-weight: 800;
}


.phil-form-optional {
  margin-left: 0.35rem;

  color: rgba(255, 255, 255, 0.55);

  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.02em;

  text-transform: lowercase;
}


/* =====================================================
   INPUTS, SELECTS AND TEXTAREAS
===================================================== */

.phil-form-field input,
.phil-form-field select,
.phil-form-field textarea {
  display: block;

  width: 100%;

  color: var(--phil-white);
  background: rgba(38, 34, 98, 0.62);

  border: 1px solid var(--phil-white-25);
  border-radius: 14px;

  outline: none;

  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;

  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}


.phil-form-field input,
.phil-form-field select {
  min-height: 52px;

  padding:
    0.8rem
    1rem;
}


.phil-form-field textarea {
  min-height: 130px;

  padding: 1rem;

  resize: vertical;
}


.phil-form-field select {
  cursor: pointer;
}


.phil-form-field input:hover,
.phil-form-field select:hover,
.phil-form-field textarea:hover {
  background: rgba(38, 34, 98, 0.76);
  border-color: var(--phil-white-40);
}


.phil-form-field input:focus,
.phil-form-field select:focus,
.phil-form-field textarea:focus {
  background: rgba(38, 34, 98, 0.9);

  border-color: var(--phil-pink);

  box-shadow:
    0 0 0 3px rgba(242, 130, 170, 0.18);
}


.phil-form-field input::placeholder,
.phil-form-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.43);

  opacity: 1;
}


.phil-form-field select option {
  color: #262262;
  background: #ffffff;
}


/* =====================================================
   AUTOFILL
===================================================== */

.phil-form-field input:-webkit-autofill,
.phil-form-field input:-webkit-autofill:hover,
.phil-form-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--phil-white);

  box-shadow:
    0 0 0 1000px var(--phil-navy) inset;

  transition:
    background-color 9999s ease-in-out 0s;
}


/* =====================================================
   HELP TEXT
===================================================== */

.phil-form-help {
  margin: 0.55rem 0 0;

  color: rgba(255, 255, 255, 0.62);

  font-size: 0.82rem;
  line-height: 1.4;
}


/* =====================================================
   MONEY FIELDS
===================================================== */

.phil-form-money-field {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);

  overflow: hidden;

  background: rgba(38, 34, 98, 0.62);

  border: 1px solid var(--phil-white-25);
  border-radius: 14px;

  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}


.phil-form-money-field > span {
  display: flex;

  align-items: center;
  justify-content: center;

  color: rgba(255, 255, 255, 0.74);
  background: var(--phil-white-06);

  border-right: 1px solid var(--phil-white-18);

  font-size: 1rem;
  font-weight: 700;
}


.phil-form-money-field input {
  min-width: 0;

  background: transparent;
  border: 0;
  border-radius: 0;

  box-shadow: none;
}


.phil-form-money-field:hover {
  background: rgba(38, 34, 98, 0.76);
  border-color: var(--phil-white-40);
}


.phil-form-money-field:focus-within {
  background: rgba(38, 34, 98, 0.9);

  border-color: var(--phil-pink);

  box-shadow:
    0 0 0 3px rgba(242, 130, 170, 0.18);
}


.phil-form-money-field input:focus {
  background: transparent;
  box-shadow: none;
}


/* =====================================================
   FILE INPUT
===================================================== */

.phil-form-field input[type="file"] {
  min-height: 58px;

  padding: 0.55rem;
}


.phil-form-field input[type="file"]::file-selector-button {
  min-height: 40px;

  margin-right: 0.9rem;
  padding:
    0.65rem
    1rem;

  color: var(--phil-white);
  background: var(--phil-white-08);

  border: 1px solid var(--phil-white-25);
  border-radius: 10px;

  cursor: pointer;

  font-weight: 700;

  transition:
    background-color 180ms ease,
    border-color 180ms ease;
}


.phil-form-field input[type="file"]::file-selector-button:hover {
  background: var(--phil-white-14);
  border-color: var(--phil-white-40);
}


/* =====================================================
   TEAM MEMBERS
===================================================== */

.phil-team-members {
  display: flex;
  flex-direction: column;

  gap: 1rem;
}


.phil-team-member-row {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 1fr);

  gap: clamp(1rem, 3vw, 2rem);

  padding: clamp(1.25rem, 3vw, 1.75rem);

  background: var(--phil-white-04);

  border: 1px solid var(--phil-white-18);
  border-radius: 18px;
}


/* =====================================================
   SECONDARY FORM BUTTON
===================================================== */

.phil-form-secondary-button {
  display: inline-flex;

  min-height: 48px;

  align-items: center;
  justify-content: center;

  margin-top: 1.25rem;
  padding:
    0.75rem
    1.25rem;

  color: var(--phil-white);
  background: var(--phil-white-06);

  border: 1px solid var(--phil-white-25);
  border-radius: 999px;

  cursor: pointer;

  font-size: 0.94rem;
  font-weight: 700;

  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}


.phil-form-secondary-button:hover {
  transform: translateY(-2px);

  background: var(--phil-white-10);
  border-color: var(--phil-white-40);
}


.phil-form-secondary-button:focus-visible {
  outline: 3px solid var(--phil-pink);
  outline-offset: 4px;
}


/* =====================================================
   FORM ACTIONS
===================================================== */

.phil-form-actions {
  display: flex;

  align-items: center;
  justify-content: flex-end;

  gap: 1rem;

  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  padding-top: clamp(1.5rem, 4vw, 2.5rem);

  border-top: 1px solid var(--phil-white-18);
}


/* =====================================================
   CANCEL BUTTON
===================================================== */

.phil-form-cancel-button {
  display: inline-flex;

  min-height: 52px;

  align-items: center;
  justify-content: center;

  padding:
    0.8rem
    1.4rem;

  color: var(--phil-white);
  background: transparent;

  border: 1px solid var(--phil-white-25);
  border-radius: 999px;

  font-size: 0.96rem;
  font-weight: 700;
  text-decoration: none;

  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}


.phil-form-cancel-button:hover {
  transform: translateY(-2px);

  background: var(--phil-white-06);
  border-color: var(--phil-white-40);
}


/* =====================================================
   SUBMIT BUTTON
===================================================== */

.phil-form-submit-button {
  display: inline-flex;

  min-height: 52px;

  align-items: center;
  justify-content: center;

  padding:
    0.8rem
    1.65rem;

  color: var(--phil-navy);
  background: var(--phil-pink);

  border: 1px solid var(--phil-pink);
  border-radius: 999px;

  cursor: pointer;

  font-size: 0.96rem;
  font-weight: 800;

  box-shadow:
    0 12px 30px rgba(242, 130, 170, 0.16);

  transition:
    transform 180ms ease,
    filter 180ms ease,
    box-shadow 180ms ease;
}


.phil-form-submit-button:hover {
  transform: translateY(-2px);

  filter: brightness(1.06);

  box-shadow:
    0 16px 34px rgba(242, 130, 170, 0.23);
}


.phil-form-cancel-button:focus-visible,
.phil-form-submit-button:focus-visible {
  outline: 3px solid var(--phil-white);
  outline-offset: 4px;
}


/* =====================================================
   VALIDATION STATES
===================================================== */

.phil-form-field input[aria-invalid="true"],
.phil-form-field select[aria-invalid="true"],
.phil-form-field textarea[aria-invalid="true"] {
  border-color: #ffb7ca;

  box-shadow:
    0 0 0 3px rgba(255, 183, 202, 0.15);
}


.phil-form-error {
  margin: 0.55rem 0 0;

  color: #ffd1dc;

  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.4;
}


/* =====================================================
   FORM-LEVEL MESSAGE
===================================================== */

.phil-form-message {
  margin-bottom: 1.5rem;
  padding: 1rem 1.2rem;

  color: var(--phil-white);
  background: var(--phil-white-08);

  border: 1px solid var(--phil-white-25);
  border-radius: 14px;

  font-size: 0.95rem;
  line-height: 1.5;
}


.phil-form-message-error {
  border-color: rgba(255, 183, 202, 0.72);
}


.phil-form-message-success {
  border-color: rgba(255, 255, 255, 0.5);
}


/* =====================================================
   TABLET
===================================================== */

@media screen and (max-width: 900px) {

  .phil-form-grid-three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}


/* =====================================================
   MOBILE
===================================================== */

@media screen and (max-width: 680px) {

  .phil-form-page {
    padding-top: 2.75rem;
  }


  .phil-form-container {
    width: min(
      calc(100% - 2rem),
      var(--phil-container-width)
    );
  }


  .phil-form-header {
    margin-bottom: 2.5rem;
  }


  .phil-form-header h1 {
    font-size: clamp(2.5rem, 12vw, 3.75rem);
  }


  .phil-form-intro {
    font-size: 1rem;
    line-height: 1.5;
  }


  .phil-form-section summary {
    min-height: 78px;

    padding:
      1.2rem
      4.5rem
      1.2rem
      1.25rem;

    font-size: 1.05rem;
  }


  .phil-form-section summary::after {
    right: 1rem;

    width: 40px;
    height: 40px;

    font-size: 1.45rem;
  }


  .phil-form-section-content {
    padding:
      1.6rem
      1.25rem
      2rem;
  }


  .phil-form-grid-two,
  .phil-form-grid-three,
  .phil-team-member-row {
    grid-template-columns: 1fr;
  }


  .phil-form-actions {
    align-items: stretch;
  }


  .phil-form-cancel-button,
  .phil-form-submit-button {
    flex: 1;
  }

}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media screen and (max-width: 460px) {

  .phil-form-container {
    width: calc(100% - 1.5rem);
  }


  .phil-form-section {
    border-radius: 18px;
  }


  .phil-form-section summary {
    padding-left: 1rem;
    padding-right: 4rem;
  }


  .phil-form-section summary::after {
    right: 0.8rem;

    width: 36px;
    height: 36px;
  }


  .phil-form-section-content {
    padding:
      1.4rem
      1rem
      1.75rem;
  }


  .phil-form-actions {
    flex-direction: column-reverse;
  }


  .phil-form-cancel-button,
  .phil-form-submit-button {
    width: 100%;
  }

}


/* =====================================================
   REDUCED MOTION
===================================================== */

@media (prefers-reduced-motion: reduce) {

  .phil-form-section,
  .phil-form-section summary,
  .phil-form-section summary::after,
  .phil-form-secondary-button,
  .phil-form-cancel-button,
  .phil-form-submit-button {
    transition: none;
  }

}

/* =====================================================
   PROJECT SUCCESS PAGE
===================================================== */

.phil-success-page {
  padding:
    clamp(4rem, 8vw, 7rem)
    0
    clamp(6rem, 10vw, 8rem);
}

.phil-success-card {

  width: min(
    calc(100% - (var(--phil-content-padding) * 2)),
    860px
  );

  margin: 0 auto;

  padding:
    clamp(2.5rem, 5vw, 4rem);

  background: var(--phil-white-06);

  border: 1px solid var(--phil-white-25);
  border-radius: var(--phil-radius-large);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 22px 48px rgba(38,34,98,.16);
}

.phil-success-icon {

  display: flex;

  width: 92px;
  height: 92px;

  align-items: center;
  justify-content: center;

  margin: 0 auto 2rem;

  border-radius: 50%;

  background: rgba(77,197,143,.18);

  border: 1px solid rgba(77,197,143,.35);

  color: #4dc58f;

  font-size: 3rem;
  font-weight: 700;
}

.phil-success-card h1 {

  margin: 0;

  color: var(--phil-white);

  text-align: center;

  font-size: clamp(2rem,4vw,3rem);
  line-height: 1;
}

.phil-success-message {

  max-width: 700px;

  margin:
    1.75rem auto
    3rem;

  color: rgba(255,255,255,.82);

  text-align: center;

  font-size: 1.05rem;
  line-height: 1.75;
}

/* =====================================================
   PROJECT SUMMARY
===================================================== */

.phil-success-summary {

  margin-top: 2rem;

  padding: 2rem;

  background: var(--phil-white-04);

  border: 1px solid var(--phil-white-18);
  border-radius: 20px;
}

.phil-success-summary h2 {

  margin: 0 0 1.75rem;

  color: var(--phil-white);

  font-size: 1.4rem;
}

.phil-success-summary dl {

  display: grid;
  gap: 1rem;
}

.phil-success-summary dl div {

  display: flex;

  justify-content: space-between;
  align-items: flex-start;

  gap: 2rem;

  padding-bottom: .9rem;

  border-bottom: 1px solid var(--phil-white-10);
}

.phil-success-summary dl div:last-child {

  padding-bottom: 0;

  border-bottom: 0;
}

.phil-success-summary dt {

  color: rgba(255,255,255,.65);

  font-weight: 700;
}

.phil-success-summary dd {

  margin: 0;

  color: var(--phil-white);

  font-weight: 600;

  text-align: right;
}

/* =====================================================
   ACTIONS
===================================================== */

.phil-success-actions {

  display: flex;
  flex-wrap: wrap;

  gap: 1rem;

  justify-content: center;

  margin-top: 3rem;
}

.phil-success-actions a {

  min-width: 220px;
}



/* =====================================================
   BROWSE PROJECTS PAGE
===================================================== */

.phil-browse-page {
  min-height: 100vh;

  padding:
    clamp(3.5rem, 7vw, 6rem)
    0
    clamp(6rem, 10vw, 9rem);
}


.phil-browse-container {
  width: min(
    calc(100% - (var(--phil-content-padding) * 2)),
    var(--phil-container-width)
  );

  margin: 0 auto;
}


/* =====================================================
   BROWSE HEADER
===================================================== */

.phil-browse-header {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(180px, 240px);

  align-items: end;

  gap: clamp(2rem, 5vw, 5rem);

  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}


.phil-browse-header-copy {
  max-width: 780px;
}


.phil-browse-eyebrow {
  margin: 0 0 0.65rem;

  color: var(--phil-pink);

  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;

  text-transform: uppercase;
}


.phil-browse-header h1 {
  margin: 0;

  color: var(--phil-white);

  font-size: clamp(2.6rem, 6vw, 5.25rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.95;
}


.phil-browse-intro {
  max-width: 760px;

  margin: 1.5rem 0 0;

  color: var(--phil-white);

  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.55;
}


/* =====================================================
   PROJECT COUNT
===================================================== */

.phil-browse-header-summary {
  display: flex;
  flex-direction: column;

  align-items: flex-end;

  padding-bottom: 0.25rem;

  text-align: right;
}


.phil-browse-project-count {
  color: var(--phil-pink);

  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.9;
}


.phil-browse-project-count-label {
  max-width: 190px;

  margin-top: 0.8rem;

  color: rgba(255, 255, 255, 0.72);

  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
}


/* =====================================================
   SEARCH AND FILTER PANEL
===================================================== */

.phil-project-tools {
  padding: clamp(1.4rem, 3vw, 2.25rem);

  background: var(--phil-white-06);

  border: 1px solid var(--phil-white-25);
  border-radius: var(--phil-radius-medium);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 42px rgba(38, 34, 98, 0.12);
}


/* =====================================================
   SEARCH
===================================================== */

.phil-project-search label,
.phil-project-filter-field label {
  display: block;

  margin: 0 0 0.55rem;

  color: var(--phil-white);

  font-size: 0.9rem;
  font-weight: 700;
}


.phil-project-search-control {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    auto;

  overflow: hidden;

  background: rgba(38, 34, 98, 0.62);

  border: 1px solid var(--phil-white-25);
  border-radius: 999px;

  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}


.phil-project-search-control:focus-within {
  background: rgba(38, 34, 98, 0.9);

  border-color: var(--phil-pink);

  box-shadow:
    0 0 0 3px rgba(242, 130, 170, 0.18);
}


.phil-project-search-control input {
  min-width: 0;
  min-height: 58px;

  padding:
    0.9rem
    1.4rem;

  color: var(--phil-white);
  background: transparent;

  border: 0;
  outline: 0;

  font-size: 1rem;
}


.phil-project-search-control input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}


.phil-project-search-control span {
  display: flex;

  align-items: center;
  justify-content: center;

  min-width: 108px;

  padding:
    0.8rem
    1.4rem;

  color: var(--phil-navy);
  background: var(--phil-pink);

  font-size: 0.92rem;
  font-weight: 800;
}


/* =====================================================
   FILTER ROW
===================================================== */

.phil-project-filter-row {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr))
    auto;

  align-items: end;

  gap: 1rem;

  margin-top: 1.5rem;
}


.phil-project-filter-field {
  min-width: 0;
}


.phil-project-filter-field select {
  width: 100%;
  min-height: 50px;

  padding:
    0.75rem
    1rem;

  color: var(--phil-white);
  background: rgba(38, 34, 98, 0.62);

  border: 1px solid var(--phil-white-25);
  border-radius: 14px;

  cursor: pointer;
  outline: 0;
}


.phil-project-filter-field select:focus {
  border-color: var(--phil-pink);

  box-shadow:
    0 0 0 3px rgba(242, 130, 170, 0.18);
}


.phil-project-filter-field option {
  color: var(--phil-navy);
  background: var(--phil-white);
}


.phil-project-clear-filters {
  min-height: 50px;

  padding:
    0.75rem
    1.3rem;

  color: var(--phil-white);
  background: transparent;

  border: 1px solid var(--phil-white-25);
  border-radius: 999px;

  cursor: pointer;

  font-size: 0.9rem;
  font-weight: 700;

  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}


.phil-project-clear-filters:hover {
  transform: translateY(-2px);

  background: var(--phil-white-08);
  border-color: var(--phil-white-40);
}


/* =====================================================
   RESULTS MESSAGE
===================================================== */

.phil-project-results-message {
  margin:
    1.4rem
    0
    clamp(3rem, 6vw, 5rem);

  color: rgba(255, 255, 255, 0.66);

  font-size: 0.9rem;
  font-weight: 600;
}


/* =====================================================
   SECTOR SECTIONS
===================================================== */

.phil-project-sectors {
  display: flex;
  flex-direction: column;

  gap: clamp(4rem, 8vw, 7rem);
}


.phil-project-sector[hidden] {
  display: none;
}


.phil-project-sector-header {
  display: flex;

  align-items: flex-end;
  justify-content: space-between;

  gap: 2rem;

  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  padding-bottom: 1.25rem;

  border-bottom: 1px solid var(--phil-white-18);
}


.phil-project-sector-header > div {
  max-width: 720px;
}


.phil-project-sector-eyebrow {
  margin: 0 0 0.45rem;

  color: var(--phil-pink);

  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;

  text-transform: uppercase;
}


.phil-project-sector-header h2 {
  margin: 0;

  color: var(--phil-white);

  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
}


.phil-project-sector-header p:last-child {
  max-width: 690px;

  margin:
    0.9rem
    0
    0;

  color: rgba(255, 255, 255, 0.72);

  font-size: 0.98rem;
  line-height: 1.5;
}


.phil-project-sector-count {
  display: flex;

  width: 54px;
  min-width: 54px;
  height: 54px;

  align-items: center;
  justify-content: center;

  color: var(--phil-white);
  background: var(--phil-white-08);

  border: 1px solid var(--phil-white-25);
  border-radius: 50%;

  font-size: 1rem;
  font-weight: 800;
}


/* =====================================================
   PROJECT GRID
===================================================== */

.phil-project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: clamp(1.25rem, 3vw, 2rem);
}


/* =====================================================
   PROJECT CARD
===================================================== */

.phil-project-card {
  display: flex;
  min-width: 0;
  min-height: 100%;

  flex-direction: column;

  overflow: hidden;

  color: var(--phil-white);
  background: var(--phil-white-06);

  border: 1px solid var(--phil-white-25);
  border-radius: var(--phil-radius-medium);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 42px rgba(38, 34, 98, 0.12);

  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}


.phil-project-card:hover {
  transform: translateY(-5px);

  background: var(--phil-white-08);
  border-color: var(--phil-white-40);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 24px 48px rgba(38, 34, 98, 0.2);
}


.phil-project-card[hidden] {
  display: none;
}


/* =====================================================
   PROJECT IMAGE
===================================================== */

.phil-project-card-image {
  position: relative;

  width: 100%;
  aspect-ratio: 16 / 10;

  overflow: hidden;

  background: var(--phil-white-08);
}


.phil-project-card-image::after {
  content: "";

  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      180deg,
      transparent 48%,
      rgba(38, 34, 98, 0.42) 100%
    );

  pointer-events: none;
}


.phil-project-card-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform 300ms ease;
}


.phil-project-card:hover .phil-project-card-image img {
  transform: scale(1.035);
}


/* =====================================================
   STATUS BADGE
===================================================== */

.phil-project-card-status {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1;

  padding:
    0.45rem
    0.75rem;

  color: var(--phil-white);
  background: rgba(38, 34, 98, 0.82);

  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;

  backdrop-filter: blur(8px);

  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;

  text-transform: uppercase;
}


/* =====================================================
   CARD CONTENT
===================================================== */

.phil-project-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;

  padding: clamp(1.25rem, 2.5vw, 1.7rem);
}


.phil-project-card-sector {
  margin: 0 0 0.55rem;

  color: var(--phil-pink);

  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 1.3;

  text-transform: uppercase;
}


.phil-project-card h3 {
  margin: 0;

  color: var(--phil-white);

  font-size: clamp(1.18rem, 2vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
}


.phil-project-card-location {
  display: flex;
  flex-wrap: wrap;

  gap: 0.35rem;

  margin-top: 0.85rem;

  color: rgba(255, 255, 255, 0.64);

  font-size: 0.86rem;
  font-weight: 600;
}


.phil-project-card-location span + span::before {
  content: "•";

  margin-right: 0.35rem;

  color: var(--phil-pink);
}


.phil-project-card-client {
  margin:
    1.1rem
    0
    0;

  color: var(--phil-white);

  font-size: 0.9rem;
  line-height: 1.4;
}


.phil-project-card-client span {
  display: block;

  margin-bottom: 0.2rem;

  color: rgba(255, 255, 255, 0.52);

  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;

  text-transform: uppercase;
}


.phil-project-card-type {
  margin:
    1rem
    0
    0;

  color: rgba(255, 255, 255, 0.76);

  font-size: 0.88rem;
  line-height: 1.4;
}


/* =====================================================
   CARD FOOTER
===================================================== */

.phil-project-card-footer {
  display: flex;
  flex-direction: column;

  gap: 1.2rem;

  margin-top: auto;
  padding-top: 1.4rem;
}


.phil-project-card-metric {
  padding-top: 1rem;

  border-top: 1px solid var(--phil-white-14);
}


.phil-project-card-metric span {
  display: block;

  margin-bottom: 0.3rem;

  color: rgba(255, 255, 255, 0.52);

  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;

  text-transform: uppercase;
}


.phil-project-card-metric strong {
  color: var(--phil-white);

  font-size: 1rem;
  font-weight: 700;
}


.phil-project-card-button {
  display: inline-flex;
  min-height: 48px;

  align-items: center;
  justify-content: center;

  width: 100%;

  padding:
    0.75rem
    1.25rem;

  color: var(--phil-navy);
  background: var(--phil-pink);

  border: 1px solid var(--phil-pink);
  border-radius: 999px;

  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;

  box-shadow:
    0 12px 28px rgba(242, 130, 170, 0.15);

  transition:
    transform 180ms ease,
    filter 180ms ease,
    box-shadow 180ms ease;
}


.phil-project-card-button:hover {
  transform: translateY(-2px);

  filter: brightness(1.06);

  box-shadow:
    0 16px 32px rgba(242, 130, 170, 0.22);
}


/* =====================================================
   EMPTY SECTOR
===================================================== */

.phil-project-sector-empty {
  padding:
    2rem
    clamp(1.25rem, 3vw, 2rem);

  background: var(--phil-white-04);

  border: 1px dashed var(--phil-white-25);
  border-radius: var(--phil-radius-medium);
}


.phil-project-sector-empty p {
  margin: 0;

  color: rgba(255, 255, 255, 0.62);

  font-size: 0.94rem;
}


/* =====================================================
   NO RESULTS
===================================================== */

.phil-project-no-results {
  margin-top: 3rem;
  padding: clamp(2rem, 5vw, 4rem);

  text-align: center;

  background: var(--phil-white-06);

  border: 1px solid var(--phil-white-25);
  border-radius: var(--phil-radius-medium);
}


.phil-project-no-results[hidden] {
  display: none;
}


.phil-project-no-results h2 {
  margin: 0;

  color: var(--phil-white);

  font-size: clamp(1.6rem, 3vw, 2.4rem);
}


.phil-project-no-results p {
  max-width: 560px;

  margin:
    1rem
    auto
    0;

  color: rgba(255, 255, 255, 0.72);

  line-height: 1.55;
}


.phil-project-no-results-button {
  min-height: 50px;

  margin-top: 1.75rem;
  padding:
    0.8rem
    1.5rem;

  color: var(--phil-navy);
  background: var(--phil-pink);

  border: 1px solid var(--phil-pink);
  border-radius: 999px;

  cursor: pointer;

  font-weight: 800;
}


/* =====================================================
   FOCUS STATES
===================================================== */

.phil-project-clear-filters:focus-visible,
.phil-project-card-button:focus-visible,
.phil-project-no-results-button:focus-visible {
  outline: 3px solid var(--phil-white);
  outline-offset: 4px;
}


/* =====================================================
   TABLET
===================================================== */

@media screen and (max-width: 960px) {

  .phil-project-filter-row {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }


  .phil-project-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }


  .phil-project-clear-filters {
    width: 100%;
  }

}


/* =====================================================
   MOBILE
===================================================== */

@media screen and (max-width: 680px) {

  .phil-browse-page {
    padding-top: 2.75rem;
  }


  .phil-browse-container {
    width: min(
      calc(100% - 2rem),
      var(--phil-container-width)
    );
  }


  .phil-browse-header {
    grid-template-columns: 1fr;

    gap: 2rem;
  }


  .phil-browse-header-summary {
    align-items: flex-start;

    text-align: left;
  }


  .phil-project-filter-row,
  .phil-project-grid {
    grid-template-columns: 1fr;
  }


  .phil-project-sector-header {
    align-items: flex-start;
  }


  .phil-project-search-control {
    grid-template-columns: 1fr;
    border-radius: 18px;
  }


  .phil-project-search-control span {
    min-height: 46px;
  }

}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media screen and (max-width: 460px) {

  .phil-browse-container {
    width: calc(100% - 1.5rem);
  }


  .phil-browse-header h1 {
    font-size: 2.55rem;
  }


  .phil-project-tools,
  .phil-project-card,
  .phil-project-sector-empty {
    border-radius: 18px;
  }


  .phil-project-sector-header {
    gap: 1rem;
  }

}


/* =====================================================
   REDUCED MOTION
===================================================== */

@media (prefers-reduced-motion: reduce) {

  .phil-project-card,
  .phil-project-card-image img,
  .phil-project-card-button,
  .phil-project-clear-filters {
    transition: none;
  }

}



/* =====================================================
   SINGLE PROJECT PROFILE
===================================================== */

.phil-project-profile {
  min-height: 100vh;

  padding:
    clamp(2.5rem, 5vw, 4rem)
    0
    clamp(6rem, 10vw, 9rem);
}


.phil-project-profile-container {
  width: min(
    calc(100% - (var(--phil-content-padding) * 2)),
    var(--phil-container-width)
  );

  margin: 0 auto;
}


/* =====================================================
   BACK LINK
===================================================== */

.phil-project-profile-navigation {
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}


.phil-project-profile-back {
  display: inline-flex;

  align-items: center;

  gap: 0.6rem;

  color: rgba(255, 255, 255, 0.76);

  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;

  transition:
    color 180ms ease,
    transform 180ms ease;
}


.phil-project-profile-back span {
  color: var(--phil-pink);

  font-size: 1.25rem;
  line-height: 1;
}


.phil-project-profile-back:hover {
  color: var(--phil-white);

  transform: translateX(-3px);
}


/* =====================================================
   PROJECT HERO
===================================================== */

.phil-project-profile-hero {
  display: grid;
  grid-template-columns:
    minmax(0, 1.04fr)
    minmax(0, 0.96fr);

  align-items: stretch;

  overflow: hidden;

  background: var(--phil-white-06);

  border: 1px solid var(--phil-white-25);
  border-radius: var(--phil-radius-large);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 22px 48px rgba(38, 34, 98, 0.16);
}


/* =====================================================
   HERO IMAGE
===================================================== */

.phil-project-profile-image {
  position: relative;

  min-height: 500px;

  overflow: hidden;

  background: var(--phil-white-08);
}


.phil-project-profile-image::after {
  content: "";

  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      180deg,
      transparent 55%,
      rgba(38, 34, 98, 0.36) 100%
    );

  pointer-events: none;
}


.phil-project-profile-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}


.phil-project-profile-status {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 1;

  padding:
    0.55rem
    0.85rem;

  color: var(--phil-white);
  background: rgba(38, 34, 98, 0.84);

  border: 1px solid var(--phil-white-40);
  border-radius: 999px;

  backdrop-filter: blur(8px);

  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;

  text-transform: uppercase;
}


/* =====================================================
   HERO HEADING
===================================================== */

.phil-project-profile-heading {
  display: flex;

  flex-direction: column;
  justify-content: center;

  min-width: 0;

  padding: clamp(2rem, 5vw, 4rem);
}


.phil-project-profile-eyebrow,
.phil-project-profile-section-eyebrow {
  margin: 0 0 0.65rem;

  color: var(--phil-pink);

  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;

  text-transform: uppercase;
}


.phil-project-profile-heading h1 {
  margin: 0;

  color: var(--phil-white);

  font-size: clamp(2.3rem, 5vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.95;
}


.phil-project-profile-location {
  margin: 1.25rem 0 0;

  color: rgba(255, 255, 255, 0.72);

  font-size: 1rem;
  font-weight: 600;
}


.phil-project-profile-heading-details {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 1.5rem;

  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.75rem;

  border-top: 1px solid var(--phil-white-18);
}


.phil-project-profile-heading-details div {
  min-width: 0;
}


.phil-project-profile-heading-details span {
  display: block;

  margin-bottom: 0.35rem;

  color: rgba(255, 255, 255, 0.5);

  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;

  text-transform: uppercase;
}


.phil-project-profile-heading-details strong {
  display: block;

  color: var(--phil-white);

  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
}


/* =====================================================
   INTRODUCTION
===================================================== */

.phil-project-profile-introduction {
  max-width: 900px;

  margin:
    clamp(4rem, 8vw, 7rem)
    auto
    0;

  text-align: center;
}


.phil-project-profile-introduction h2 {
  margin: 0;

  color: var(--phil-white);

  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}


.phil-project-profile-introduction > p:last-child {
  margin:
    1.5rem
    0
    0;

  color: rgba(255, 255, 255, 0.84);

  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.7;
}


/* =====================================================
   SHARED SECTION HEADING
===================================================== */

.phil-project-snapshot,
.phil-project-story,
.phil-project-detail-section {
  margin-top: var(--phil-section-space);
}


.phil-project-section-heading {
  display: flex;

  align-items: flex-end;
  justify-content: space-between;

  gap: 3rem;

  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}


.phil-project-section-heading > div {
  max-width: 700px;
}


.phil-project-section-heading h2 {
  margin: 0;

  color: var(--phil-white);

  font-size: clamp(1.9rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}


.phil-project-section-heading > p {
  max-width: 420px;

  margin: 0;

  color: rgba(255, 255, 255, 0.68);

  font-size: 0.95rem;
  line-height: 1.5;
}


/* =====================================================
   PROJECT SNAPSHOT
===================================================== */

.phil-project-snapshot-grid {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 1px;

  overflow: hidden;

  margin: 0;

  background: var(--phil-white-18);

  border: 1px solid var(--phil-white-18);
  border-radius: var(--phil-radius-medium);
}


.phil-project-snapshot-grid div {
  min-width: 0;
  min-height: 130px;

  padding:
    1.5rem
    1.35rem;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.08),
      rgba(255, 255, 255, 0.045)
    );
}


.phil-project-snapshot-grid dt {
  margin-bottom: 0.75rem;

  color: rgba(255, 255, 255, 0.5);

  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;

  text-transform: uppercase;
}


.phil-project-snapshot-grid dd {
  margin: 0;

  color: var(--phil-white);

  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.35;

  overflow-wrap: anywhere;
}


.phil-project-snapshot-grid
.phil-project-snapshot-value {
  color: var(--phil-pink);

  font-size: 1.18rem;
}


.phil-project-snapshot-status {
  text-transform: capitalize;
}


/* =====================================================
   PROJECT STORY
===================================================== */

.phil-project-story-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: clamp(1.25rem, 3vw, 2rem);
}


.phil-project-story-card {
  position: relative;

  min-width: 0;

  padding: clamp(1.75rem, 4vw, 2.75rem);

  background: var(--phil-white-06);

  border: 1px solid var(--phil-white-25);
  border-radius: var(--phil-radius-medium);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 42px rgba(38, 34, 98, 0.12);
}


.phil-project-story-number {
  display: inline-flex;

  width: 42px;
  height: 42px;

  align-items: center;
  justify-content: center;

  margin-bottom: 1.4rem;

  color: var(--phil-pink);
  background: var(--phil-white-06);

  border: 1px solid var(--phil-white-18);
  border-radius: 50%;

  font-size: 0.78rem;
  font-weight: 800;
}


.phil-project-story-card h3 {
  margin: 0;

  color: var(--phil-white);

  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}


.phil-project-story-card p {
  margin:
    1rem
    0
    0;

  color: rgba(255, 255, 255, 0.78);

  font-size: 0.96rem;
  line-height: 1.65;
}


/* =====================================================
   DETAIL ACCORDIONS
===================================================== */

.phil-project-detail-accordions {
  display: flex;
  flex-direction: column;

  gap: 1rem;
}


.phil-project-detail-accordion {
  overflow: hidden;

  color: var(--phil-white);
  background: var(--phil-white-06);

  border: 1px solid var(--phil-white-25);
  border-radius: var(--phil-radius-medium);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 42px rgba(38, 34, 98, 0.12);

  transition:
    background-color 180ms ease,
    border-color 180ms ease;
}


.phil-project-detail-accordion:hover,
.phil-project-detail-accordion[open] {
  background: var(--phil-white-08);
  border-color: var(--phil-white-40);
}


.phil-project-detail-accordion summary {
  position: relative;

  display: flex;
  min-height: 88px;

  align-items: center;

  padding:
    1.4rem
    5.25rem
    1.4rem
    clamp(1.4rem, 3vw, 2.4rem);

  color: var(--phil-white);

  cursor: pointer;
  list-style: none;

  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 700;
  line-height: 1.2;
}


.phil-project-detail-accordion summary::-webkit-details-marker {
  display: none;
}


.phil-project-detail-accordion summary::marker {
  content: "";
}


.phil-project-detail-accordion summary::after {
  content: "+";

  position: absolute;
  top: 50%;
  right: clamp(1.25rem, 3vw, 2rem);

  display: flex;
  width: 44px;
  height: 44px;

  align-items: center;
  justify-content: center;

  color: var(--phil-white);
  background: var(--phil-navy);

  border: 2px solid var(--phil-white);
  border-radius: 50%;

  font-size: 1.65rem;
  font-weight: 300;
  line-height: 1;

  transform: translateY(-50%);

  transition:
    transform 180ms ease,
    background-color 180ms ease;
}


.phil-project-detail-accordion[open]
summary::after {
  content: "−";

  background: var(--phil-pink);

  transform:
    translateY(-50%)
    rotate(180deg);
}


.phil-project-detail-accordion summary:focus-visible {
  outline: 3px solid var(--phil-pink);
  outline-offset: -3px;
}


.phil-project-detail-content {
  padding:
    clamp(1.75rem, 4vw, 3rem)
    clamp(1.4rem, 3vw, 2.4rem)
    clamp(2.25rem, 5vw, 3.5rem);

  border-top: 1px solid var(--phil-white-18);
}


.phil-project-detail-content h3 {
  margin:
    0
    0
    1rem;

  color: var(--phil-pink);

  font-size: 1.1rem;
  font-weight: 700;
}


.phil-project-detail-columns {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: clamp(2rem, 5vw, 4rem);
}


.phil-project-detail-columns > div + div {
  padding-left: clamp(1.5rem, 3vw, 2.5rem);

  border-left: 1px solid var(--phil-white-18);
}


.phil-project-detail-empty {
  margin: 0;

  color: rgba(255, 255, 255, 0.62);

  font-size: 0.94rem;
}


/* =====================================================
   TAGS
===================================================== */

.phil-project-tag-list {
  display: flex;
  flex-wrap: wrap;

  gap: 0.65rem;

  margin: 0;
  padding: 0;

  list-style: none;
}


.phil-project-tag-list li {
  padding:
    0.55rem
    0.8rem;

  color: var(--phil-white);
  background: var(--phil-white-06);

  border: 1px solid var(--phil-white-18);
  border-radius: 999px;

  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.25;
}


/* =====================================================
   TEAM
===================================================== */

.phil-project-team-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 1rem;
}


.phil-project-team-member {
  display: grid;
  grid-template-columns:
    54px
    minmax(0, 1fr);

  align-items: center;

  gap: 1rem;

  padding: 1.25rem;

  background: var(--phil-white-04);

  border: 1px solid var(--phil-white-18);
  border-radius: 16px;
}


.phil-project-team-initial {
  display: flex;
  width: 54px;
  height: 54px;

  align-items: center;
  justify-content: center;

  overflow: hidden;

  color: var(--phil-navy);
  background: var(--phil-pink);

  border-radius: 50%;

  font-size: 0;
  font-weight: 800;
}


.phil-project-team-initial::before {
  content: "P";

  font-size: 1rem;
}


.phil-project-team-member h3 {
  margin: 0;

  color: var(--phil-white);

  font-size: 1rem;
}


.phil-project-team-member p {
  margin:
    0.3rem
    0
    0;

  color: rgba(255, 255, 255, 0.7);

  font-size: 0.86rem;
}


.phil-project-team-member span {
  display: block;

  margin-top: 0.3rem;

  color: rgba(255, 255, 255, 0.5);

  font-size: 0.78rem;
}


/* =====================================================
   DOCUMENTS
===================================================== */

.phil-project-document-list {
  display: flex;
  flex-direction: column;

  gap: 0.85rem;
}


.phil-project-document {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 2rem;

  padding: 1.25rem;

  background: var(--phil-white-04);

  border: 1px solid var(--phil-white-18);
  border-radius: 16px;
}


.phil-project-document-label {
  display: block;

  margin-bottom: 0.35rem;

  color: rgba(255, 255, 255, 0.48);

  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;

  text-transform: uppercase;
}


.phil-project-document h3 {
  margin: 0;

  color: var(--phil-white);

  font-size: 0.98rem;
}


.phil-project-document-button {
  display: inline-flex;
  min-height: 44px;

  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  padding:
    0.7rem
    1.1rem;

  color: var(--phil-white);
  background: transparent;

  border: 1px solid var(--phil-white-25);
  border-radius: 999px;

  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}


.phil-project-document-button:hover {
  background: var(--phil-white-08);

  border-color: var(--phil-white-40);
}


/* =====================================================
   INTERNAL INFORMATION
===================================================== */

.phil-project-internal-notes {
  margin-bottom: 2rem;
  padding: 1.25rem;

  background: var(--phil-white-04);

  border: 1px solid var(--phil-white-18);
  border-radius: 16px;
}


.phil-project-internal-notes p {
  margin: 0;

  color: rgba(255, 255, 255, 0.78);

  line-height: 1.6;
}


.phil-project-record-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 1px;

  overflow: hidden;

  margin: 0;

  background: var(--phil-white-18);

  border: 1px solid var(--phil-white-18);
  border-radius: 16px;
}


.phil-project-record-grid div {
  padding: 1.2rem;

  background: var(--phil-white-04);
}


.phil-project-record-grid dt {
  margin-bottom: 0.45rem;

  color: rgba(255, 255, 255, 0.48);

  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;

  text-transform: uppercase;
}


.phil-project-record-grid dd {
  margin: 0;

  color: var(--phil-white);

  font-size: 0.88rem;
  font-weight: 600;

  overflow-wrap: anywhere;
}


/* =====================================================
   PAGE ACTIONS
===================================================== */

.phil-project-profile-actions {
  display: flex;

  align-items: center;
  justify-content: flex-end;

  gap: 1rem;

  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: 2rem;

  border-top: 1px solid var(--phil-white-18);
}


.phil-project-profile-primary-button,
.phil-project-profile-secondary-button {
  display: inline-flex;
  min-height: 52px;

  align-items: center;
  justify-content: center;

  padding:
    0.8rem
    1.5rem;

  border-radius: 999px;

  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;

  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    filter 180ms ease;
}


.phil-project-profile-primary-button {
  color: var(--phil-navy);
  background: var(--phil-pink);

  border: 1px solid var(--phil-pink);
}


.phil-project-profile-secondary-button {
  color: var(--phil-white);
  background: transparent;

  border: 1px solid var(--phil-white-25);
}


.phil-project-profile-primary-button:hover,
.phil-project-profile-secondary-button:hover {
  transform: translateY(-2px);
}


.phil-project-profile-primary-button:hover {
  filter: brightness(1.06);
}


.phil-project-profile-secondary-button:hover {
  background: var(--phil-white-08);

  border-color: var(--phil-white-40);
}

/* =====================================================
   EDIT PROJECT BUTTON
===================================================== */

.phil-project-profile-edit-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;

  padding: 0.9rem 1.5rem;

  color: #ffffff;
  background: #4f50a2;

  border: 1px solid #4f50a2;
  border-radius: 100px;

  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;

  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}


.phil-project-profile-edit-button:hover {
  background: #3d3e86;
  border-color: #3d3e86;
  transform: translateY(-2px);
}


.phil-project-profile-edit-button:focus-visible {
  outline: 3px solid #f282aa;
  outline-offset: 4px;
}


/* =====================================================
   TABLET
===================================================== */

@media screen and (max-width: 900px) {

  .phil-project-profile-hero {
    grid-template-columns: 1fr;
  }


  .phil-project-profile-image {
    min-height: 420px;
  }


  .phil-project-snapshot-grid {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }

}


/* =====================================================
   MOBILE
===================================================== */

@media screen and (max-width: 680px) {

  .phil-project-profile {
    padding-top: 2rem;
  }


  .phil-project-profile-container {
    width: min(
      calc(100% - 2rem),
      var(--phil-container-width)
    );
  }


  .phil-project-profile-image {
    min-height: 300px;
  }


  .phil-project-profile-heading-details,
  .phil-project-story-grid,
  .phil-project-detail-columns,
  .phil-project-team-grid,
  .phil-project-record-grid {
    grid-template-columns: 1fr;
  }


  .phil-project-snapshot-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }


  .phil-project-section-heading {
    align-items: flex-start;
    flex-direction: column;

    gap: 1rem;
  }


  .phil-project-detail-columns > div + div {
    margin-top: 2rem;
    padding-top: 2rem;
    padding-left: 0;

    border-top: 1px solid var(--phil-white-18);
    border-left: 0;
  }


  .phil-project-detail-accordion summary {
    min-height: 78px;

    padding:
      1.2rem
      4.5rem
      1.2rem
      1.25rem;
  }


  .phil-project-document {
    align-items: stretch;
    flex-direction: column;

    gap: 1rem;
  }


  .phil-project-document-button {
    width: 100%;
  }

}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media screen and (max-width: 460px) {

  .phil-project-profile-container {
    width: calc(100% - 1.5rem);
  }


  .phil-project-profile-hero {
    border-radius: 20px;
  }


  .phil-project-profile-heading {
    padding: 1.5rem;
  }


  .phil-project-profile-heading h1 {
    font-size: 2.4rem;
  }


  .phil-project-snapshot-grid {
    grid-template-columns: 1fr;
  }


  .phil-project-profile-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }


  .phil-project-profile-primary-button,
  .phil-project-profile-secondary-button {
    width: 100%;
  }

}


/* =====================================================
   REDUCED MOTION
===================================================== */

@media (prefers-reduced-motion: reduce) {

  .phil-project-profile-back,
  .phil-project-detail-accordion,
  .phil-project-detail-accordion summary::after,
  .phil-project-profile-primary-button,
  .phil-project-profile-secondary-button {
    transition: none;
  }

}


/* =====================================================
   PROJECT IMAGE UPLOAD GUIDANCE
===================================================== */

.phil-image-upload-guidance,
.phil-image-rights-notice {
  padding: 1.25rem 1.35rem;

  color: var(--phil-white);

  background: var(--phil-white-06);
  border: 1px solid var(--phil-white-18);
  border-radius: var(--phil-radius-small);
}


.phil-image-upload-guidance h3,
.phil-image-rights-notice h3 {
  margin: 0 0 0.65rem;

  color: var(--phil-pink);

  font-size: 1rem;
  font-weight: 700;
}


.phil-image-upload-guidance p,
.phil-image-rights-notice p {
  margin: 0;

  color: rgba(255, 255, 255, 0.78);

  font-size: 0.88rem;
  line-height: 1.5;
}


.phil-image-upload-guidance p + p {
  margin-top: 0.75rem;
}


/* =====================================================
   SELECTED IMAGE AREA
===================================================== */

.phil-image-selection {
  padding-top: 0.5rem;
}


.phil-image-selection[hidden] {
  display: none;
}


.phil-image-selection-heading {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 1.25rem;

  margin-bottom: 1rem;
}


.phil-image-selection-heading h3 {
  margin: 0;

  color: var(--phil-white);

  font-size: 1.05rem;
}


.phil-image-selection-heading p {
  margin: 0.3rem 0 0;

  color: rgba(255, 255, 255, 0.7);

  font-size: 0.82rem;
}


/* =====================================================
   IMAGE PREVIEW GRID
===================================================== */

.phil-image-preview-grid {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 1rem;
}


.phil-image-preview-card {
  min-width: 0;
  overflow: hidden;

  background: var(--phil-white-06);
  border: 1px solid var(--phil-white-18);
  border-radius: var(--phil-radius-small);
}


.phil-image-preview-image {
  width: 100%;
  aspect-ratio: 4 / 3;

  overflow: hidden;

  background: var(--phil-navy);
}


.phil-image-preview-image img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
}


.phil-image-preview-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;

  gap: 0.3rem;

  padding: 0.8rem;
}


.phil-image-preview-copy strong {
  overflow: hidden;

  color: var(--phil-white);

  font-size: 0.8rem;
  font-weight: 700;

  text-overflow: ellipsis;
  white-space: nowrap;
}


.phil-image-preview-copy > span {
  color: rgba(255, 255, 255, 0.66);

  font-size: 0.72rem;
}


.phil-image-primary-label {
  align-self: flex-start;

  margin-top: 0.25rem;
  padding: 0.25rem 0.55rem;

  color: var(--phil-navy) !important;
  background: var(--phil-pink);

  border-radius: 999px;

  font-size: 0.65rem !important;
  font-weight: 800;

  text-transform: uppercase;
}


/* =====================================================
   IMAGE RIGHTS CONFIRMATION
===================================================== */

.phil-image-confirmation {
  display: grid;

  grid-template-columns:
    22px
    minmax(0, 1fr);

  align-items: flex-start;

  gap: 0.75rem;

  margin-top: 1rem;

  color: var(--phil-white);

  cursor: pointer;
}


.phil-image-confirmation input {
  width: 18px;
  height: 18px;

  margin: 0.1rem 0 0;

  accent-color: var(--phil-pink);
}


.phil-image-confirmation span {
  font-size: 0.84rem;
  line-height: 1.45;
}


/* =====================================================
   IMAGE UPLOAD RESPONSIVE
===================================================== */

@media screen and (max-width: 900px) {

  .phil-image-preview-grid {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }

}


@media screen and (max-width: 680px) {

  .phil-image-selection-heading {
    align-items: flex-start;
    flex-direction: column;
  }


  .phil-image-preview-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

}


@media screen and (max-width: 420px) {

  .phil-image-preview-grid {
    grid-template-columns: 1fr;
  }

}


/* =====================================================
   AI PROJECT IMPORT
===================================================== */

.phil-ai-import-block {

  margin:
    0
    0
    clamp(3rem, 6vw, 4rem);

  padding:
    clamp(2rem, 4vw, 3rem);

  background: var(--phil-white-06);

  border: 1px solid var(--phil-white-25);
  border-radius: var(--phil-radius-medium);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 18px 42px rgba(38,34,98,.12);

}


.phil-ai-import-header {

  max-width: 900px;

}


.phil-ai-import-header p:last-child {

  margin:
    1.5rem
    0
    2.5rem;

  line-height: 1.7;

}


.phil-ai-import-grid {

  display: grid;

  gap: 2rem;

}


.phil-ai-import-grid .phil-form-field {

  margin-bottom: .75rem;

}


.phil-ai-import-note {

  margin:
    2.5rem
    0;

  padding:
    1.5rem
    2rem;

  background: rgba(255,255,255,.04);

  border-left: 5px solid var(--phil-pink);
  border-radius: 12px;

}


.phil-ai-import-note strong {

  display: block;

  margin-bottom: 1rem;

  color: var(--phil-white);

  font-size: 1.1rem;
  font-weight: 700;

}


.phil-ai-import-note ul {

  margin: 0;

  padding-left: 1.4rem;

}


.phil-ai-import-note li {

  margin-bottom: .6rem;

  color: rgba(255,255,255,.88);

  line-height: 1.55;

}


.phil-ai-import-note li:last-child {

  margin-bottom: 0;

}


.phil-ai-import-actions {

  margin-top: 2.5rem;

}


.phil-ai-import-actions .phil-form-submit-button {

  min-width: 260px;

}


/* =====================================================
   TEAM MEMBER REMOVE BUTTON
===================================================== */

.phil-team-member-remove-button {
  grid-column: 1 / -1;

  justify-self: flex-start;

  padding: 0;

  color: rgba(255, 255, 255, 0.68);
  background: transparent;

  border: 0;

  cursor: pointer;

  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}


.phil-team-member-remove-button:hover {
  color: var(--phil-pink);
}


.phil-team-member-remove-button:focus-visible {
  outline: 3px solid var(--phil-pink);
  outline-offset: 4px;
}