@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500&display=swap");

:root {
  --bg: #f8f5ef;
  --text: #1f1d1a;
  --text-soft: #69635d;
  --line: rgba(31, 29, 26, 0.1);
  --divider-stroke: 1px solid var(--line);
  --line-light: rgba(248, 243, 242, 0.28);
  --accent: #8a8074;
  --accent-orange: #bd7a49;
  --brand-orange: #d19a70;
  --shell-bg: #676560;
  --container: 1120px;
  --body-copy-font: "Open Sans", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: Baskerville, serif;
  color: var(--text);
  background: var(--shell-bg);
}

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

.page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #fcfaf6 0%, var(--bg) 100%);
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.site-header {
  position: relative;
  padding: calc(2rem + env(safe-area-inset-top, 0px)) 0 2rem;
  background: var(--shell-bg);
  border-bottom: 1px solid rgba(31, 29, 26, 0.24);
}

.site-header::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(-1 * env(safe-area-inset-top, 0px));
  height: env(safe-area-inset-top, 0px);
  background: var(--shell-bg);
}

.portal-project-page .site-header {
  border-bottom: 0;
}

.portal-project-page .portal-card {
  border-top: 0;
}

.portal-project-page .portal-page {
  padding-top: 1.5rem;
}

.site-footer {
  padding: 1.35rem 0;
  background: var(--shell-bg);
  border-top: 1px solid var(--line-light);
  margin-top: auto;
}

.site-footer,
.site-footer a,
.site-footer span,
.site-footer p {
  color: rgba(248, 243, 242, 0.9);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.site-header .brand {
  color: rgba(248, 243, 242, 0.96);
  justify-self: center;
}

.site-header .logo-line-primary,
.site-header .logo-line-secondary,
.site-footer .brand,
.site-footer .logo-line-secondary {
  color: rgba(248, 243, 242, 0.96);
}

.site-footer .logo-line-primary {
  color: rgba(248, 243, 242, 0.96);
}

.header-portal-link,
.header-contact-link {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.15rem;
  box-sizing: border-box;
  background: transparent;
  background-color: transparent;
  background-image: none;
  padding: 0.55rem 1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  box-shadow: none;
  color: rgba(248, 243, 242, 0.96);
  font-family: inherit;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1;
  margin-bottom: 0.15rem;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.header-portal-link {
  justify-self: start;
  align-self: end;
}

.header-logout-link {
  justify-self: end;
  align-self: end;
}

.header-contact-link {
  justify-self: end;
  align-self: end;
}

.header-contact-link.is-on-header {
  background: transparent;
  background-color: transparent;
  border-color: transparent;
}

.home-page .header-contact-link {
  position: fixed;
  top: var(--header-fixed-button-center, 4.8rem);
  transform: translateY(-50%);
  z-index: 45;
  margin-bottom: 0;
  background: var(--shell-bg);
  background-color: var(--shell-bg);
  border-color: var(--shell-bg);
}

.home-page .header-inner {
  grid-template-columns: 1fr;
  justify-items: center;
}

.home-page .site-header .brand {
  justify-self: center;
  align-self: center;
}

.home-page .header-contact-link {
  right: 1rem;
}

.home-page .header-portal-link {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  margin-bottom: 0;
  justify-self: auto;
  align-self: auto;
}

.home-page.contact-open .header-portal-link {
  opacity: 0;
  pointer-events: none;
}

.home-page.contact-open .header-contact-link {
  opacity: 0;
  pointer-events: none;
}

.home-page.portal-open .header-portal-link {
  opacity: 0;
  pointer-events: none;
}

.home-page.portal-open .header-contact-link {
  opacity: 0;
  pointer-events: none;
}

.home-page.project-open .header-portal-link {
  opacity: 0;
  pointer-events: none;
}

.home-page.project-open .header-contact-link {
  opacity: 0;
  pointer-events: none;
}

.header-portal-link:hover,
.header-portal-link.is-active,
.header-contact-link:hover,
.header-contact-link.is-active {
  background: var(--bg);
  border-color: var(--bg);
  color: var(--accent-orange);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1.12rem;
}

.logo-line {
  display: block;
  font-family: Baskerville, serif;
  font-weight: 400;
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.logo-line-primary {
  font-size: clamp(1.38rem, 3.48vw, 2.46rem);
  letter-spacing: 0.07em;
}

.logo-line-secondary {
  font-size: clamp(0.86rem, 1.95vw, 1.42rem);
  letter-spacing: 0.12em;
}

.lead,
.footer-inner {
  color: var(--text-soft);
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  padding: 0 0 3rem;
}

.supporting-line {
  margin: 1rem 0 0;
  max-width: 42rem;
  color: var(--text-soft);
  font-family: var(--body-copy-font);
  font-size: clamp(0.86rem, 1.35vw, 0.98rem);
  font-style: normal;
  font-weight: 300;
  line-height: 1.65;
}

.feature-image-section {
  width: 100%;
  margin-top: 3rem;
}

.hero > .feature-image-section:first-child {
  margin-top: 0;
}

.feature-image-frame {
  width: 100%;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.feature-image-frame img {
  width: 100%;
  height: clamp(22rem, 44vw, 42rem);
  object-fit: cover;
  display: block;
}

.feature-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.75rem 0 0;
}

.feature-copy h2 {
  margin: 0;
  color: var(--text);
  font-family: Baskerville, serif;
  font-size: clamp(1.42rem, 2.65vw, 2.08rem);
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
}

.feature-copy h2::after,
.tile-gallery-intro h2::after,
.about-intro h2::after,
.services-section > h2::after {
  content: "";
  display: block;
  width: 4.5rem;
  margin: 0.85rem auto 0;
  border-bottom: 2px solid var(--accent-orange);
}

.feature-copy p {
  margin: 1rem 0 0;
  max-width: 42rem;
  color: var(--text-soft);
  font-family: var(--body-copy-font);
  font-size: clamp(0.86rem, 1.35vw, 0.98rem);
  font-weight: 400;
  line-height: 1.9;
}

.tile-gallery-section {
  padding-top: 3rem;
}

.tile-gallery-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 0;
}

.tile-gallery-intro h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.42rem, 2.65vw, 2.08rem);
  font-weight: 400;
  line-height: 1.2;
}

.tile-gallery-intro p {
  margin: 1rem 0 0;
  max-width: 42rem;
  color: var(--text-soft);
  font-family: var(--body-copy-font);
  font-size: clamp(0.86rem, 1.35vw, 0.98rem);
  font-weight: 400;
  line-height: 1.9;
}

.tile-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(1rem, 1.7vw, 1.4rem);
  row-gap: 2rem;
  padding-top: 2.5rem;
  padding-inline: clamp(1rem, 2.6vw, 2rem);
}

.tile-gallery-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

.project-card {
  cursor: pointer;
}

.project-card:focus-visible {
  outline: none;
}

.project-card:hover .tile-gallery-item,
.project-card:focus-visible .tile-gallery-item {
  border-color: rgba(31, 29, 26, 0.18);
  box-shadow: 0 22px 42px rgba(31, 29, 26, 0.13);
}

.tile-gallery-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  width: 100%;
  min-width: 0;
}

.tile-gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.tile-gallery-item-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile-gallery-title,
.team-copy h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.28rem;
  font-weight: 400;
}

.tile-gallery-title {
  width: 100%;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}

.tile-gallery-postcode,
.team-role {
  margin: 0.35rem 0 0;
  color: var(--accent-orange);
  font-size: 0.96rem;
}

.tile-gallery-postcode {
  width: 100%;
  text-align: left;
}

.tile-gallery-item::before,
.tile-gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
}

.tile-gallery-item.has-photo::before,
.tile-gallery-item.has-photo::after {
  display: none;
}

.tile-gallery-item::before {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.22), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(31, 29, 26, 0.04));
}

.tile-gallery-item::after {
  inset: 16%;
  border: 1px solid rgba(248, 243, 242, 0.42);
  border-radius: 16px;
}

.tile-gallery-item-one {
  background:
    radial-gradient(circle at 24% 24%, rgba(255, 255, 255, 0.46), transparent 28%),
    linear-gradient(160deg, #cfc7bf 0%, #b5aca2 100%);
}

.tile-gallery-item-two {
  background:
    radial-gradient(circle at 72% 26%, rgba(255, 255, 255, 0.42), transparent 26%),
    linear-gradient(160deg, #d4cdc5 0%, #b7ada3 100%);
}

.tile-gallery-item-three {
  background:
    radial-gradient(circle at 34% 70%, rgba(255, 255, 255, 0.38), transparent 24%),
    linear-gradient(160deg, #cbc3bb 0%, #a89f96 100%);
}

.about-section {
  padding: 2.75rem 0 0;
}

.about-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.about-intro h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.42rem, 2.65vw, 2.08rem);
  font-weight: 400;
  line-height: 1.2;
}

.services-section h2 {
  font-size: clamp(1.42rem, 2.65vw, 2.08rem);
}

.services-grid {
  width: 100%;
}

.services-grid .team-copy {
  text-align: left;
}

.about-intro p {
  margin: 1rem 0 0;
  max-width: 40rem;
  color: var(--text-soft);
  font-family: var(--body-copy-font);
  font-size: 0.89rem;
  font-weight: 400;
  line-height: 1.9;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(1rem, 1.7vw, 1.4rem);
  row-gap: 2rem;
  padding-top: 2.5rem;
  padding-inline: clamp(1rem, 2.6vw, 2rem);
}

.team-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.team-photo {
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}

.team-photo-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-photo::before,
.team-photo::after {
  content: "";
  position: absolute;
}

.team-photo.has-photo::before,
.team-photo.has-photo::after {
  display: none;
}

.team-photo::before {
  width: 32%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.55);
}

.team-photo::after {
  width: 58%;
  height: 42%;
  left: 50%;
  bottom: 10%;
  transform: translateX(-50%);
  border-radius: 48% 48% 22% 22%;
  background: rgba(255, 255, 255, 0.42);
}

.team-photo-one {
  background: linear-gradient(180deg, #cfc7bf 0%, #b6aea5 100%);
}

.team-photo-two {
  background: linear-gradient(180deg, #c8c1ba 0%, #a79f96 100%);
}

.team-photo-three {
  background: linear-gradient(180deg, #d4cdc5 0%, #b1a79f 100%);
}

.service-photo-one {
  background: linear-gradient(180deg, #d9d2cb 0%, #b8aea4 100%);
}

.service-photo-two {
  background: linear-gradient(180deg, #cfc8c0 0%, #aaa199 100%);
}

.service-photo-three {
  background: linear-gradient(180deg, #d5cec7 0%, #b6aba1 100%);
}

.service-photo-four {
  background: linear-gradient(180deg, #d7d0c8 0%, #b4a99f 100%);
}

.service-photo-four .team-photo-image {
  object-position: 58% center;
}

.service-photo-five {
  background: linear-gradient(180deg, #cfc6be 0%, #a99f95 100%);
}

.service-photo-six {
  background: linear-gradient(180deg, #d8d1ca 0%, #b8ada2 100%);
}

.team-copy p:last-child {
  margin: 0.8rem 0 0;
  color: var(--text-soft);
  font-family: var(--body-copy-font);
  font-size: 0.89rem;
  font-weight: 300;
  line-height: 1.65;
}

.project-popout {
  position: fixed;
  inset: 0;
  z-index: 42;
  pointer-events: none;
}

.project-popout-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(31, 29, 26, 0.34);
  opacity: 0;
  transition: opacity 220ms ease;
}

.project-popout-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(calc(100% - 2rem), 72rem);
  max-height: min(calc(100dvh - 2rem), 54rem);
  padding: 1.2rem 1.2rem 1.4rem;
  border: 1px solid rgba(31, 29, 26, 0.08);
  border-radius: 28px;
  background: rgba(255, 252, 247, 0.98);
  box-shadow: 0 34px 80px rgba(31, 29, 26, 0.18);
  transform: translate(-50%, calc(-50% + 1.25rem));
  opacity: 0;
  transition: opacity 220ms ease, transform 220ms ease;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.project-popout.is-open {
  pointer-events: auto;
}

.project-popout.is-open .project-popout-backdrop {
  opacity: 1;
}

.project-popout.is-open .project-popout-panel {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.project-popout-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

.project-popout-label {
  margin: 0;
  color: var(--accent-orange);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.project-popout-close {
  flex-shrink: 0;
}

.project-popout-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: 0.45rem;
}

.project-popout-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding-left: 0.4rem;
}

.project-popout-title {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 400;
  line-height: 1.1;
  width: 100%;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: left;
}

.project-popout-postcode {
  margin: 0.35rem 0 0;
  color: var(--accent-orange);
  font-size: 0.96rem;
  width: 100%;
  text-align: left;
}

.project-popout-gallery-shell {
  position: relative;
  width: 100%;
  opacity: 0;
  transform: translateY(0.35rem);
  transition: opacity 180ms ease 90ms, transform 180ms ease 90ms;
}

.project-popout-gallery {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  width: 100%;
  margin: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scrollbar-gutter: stable;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem;
}

.project-popout.is-open .project-popout-gallery-shell {
  opacity: 1;
  transform: translateY(0);
}

.project-popout-arrow {
  position: absolute;
  top: 50%;
  z-index: 1;
  appearance: none;
  -webkit-appearance: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(31, 29, 26, 0.12);
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.18);
  color: rgba(31, 29, 26, 0.7);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, opacity 180ms ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.project-popout-arrow-left {
  left: 0.7rem;
}

.project-popout-arrow-right {
  right: 0.7rem;
}

.project-popout-arrow:hover,
.project-popout-arrow:focus-visible {
  background: var(--shell-bg);
  color: rgba(248, 243, 242, 0.96);
  border-color: var(--shell-bg);
  outline: none;
}

.project-popout-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.project-popout-figure {
  display: flex;
  flex: 0 0 auto;
  margin: 0;
  height: clamp(18rem, 42vw, 30rem);
  border: 0;
  border-radius: 22px;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
  scroll-snap-align: start;
}

.project-popout-figure img {
  display: block;
  width: auto;
  height: 100%;
  max-width: none;
}

.project-popout-placeholder {
  flex: 0 0 auto;
  width: clamp(18rem, 42vw, 30rem);
  height: clamp(18rem, 42vw, 30rem);
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 22px;
  overflow: hidden;
  color: rgba(248, 243, 242, 0.92);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 1.5rem;
  scroll-snap-align: start;
}

.project-popout-placeholder-label {
  position: relative;
  z-index: 1;
}

.portal-popout,
.contact-popout {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
}

.portal-popout-backdrop,
.contact-popout-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(31, 29, 26, 0.26);
  opacity: 0;
  transition: opacity 220ms ease;
}

.portal-popout-panel,
.contact-popout-panel {
  position: absolute;
  top: 0;
  width: min(100%, 28rem);
  height: 100%;
  max-height: 100dvh;
  padding: 2.3rem 2rem 2rem;
  background: rgba(255, 252, 247, 0.98);
  box-shadow: -22px 0 60px rgba(31, 29, 26, 0.14);
  transform: translateX(100%);
  transition: transform 220ms ease;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
}

.portal-popout-panel {
  left: 0;
  box-shadow: 22px 0 60px rgba(31, 29, 26, 0.14);
  transform: translateX(-100%);
}

.contact-popout-panel {
  right: 0;
  box-shadow: -22px 0 60px rgba(31, 29, 26, 0.14);
  transform: translateX(100%);
}

.portal-popout.is-open,
.contact-popout.is-open {
  pointer-events: auto;
}

.portal-popout.is-open .portal-popout-backdrop,
.contact-popout.is-open .contact-popout-backdrop {
  opacity: 1;
}

.portal-popout.is-open .portal-popout-panel,
.contact-popout.is-open .contact-popout-panel {
  transform: translateX(0);
}

.contact-popout-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.contact-popout-kicker,
.contact-popout-label {
  margin: 0;
  color: var(--accent-orange);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-popout-close {
  border: 0;
  background: transparent;
  color: var(--text-soft);
  font-family: inherit;
  font-size: 0.98rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease;
}

.contact-popout-close:hover,
.contact-popout-close:focus-visible {
  color: var(--text);
  background: rgba(31, 29, 26, 0.08);
}

.contact-popout-body {
  padding-top: 0.35rem;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

.contact-popout-title {
  margin: 0;
  color: var(--accent-orange);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  line-height: 1.15;
}

.contact-popout-body p {
  margin: 1rem 0 0;
  color: var(--text-soft);
  font-family: var(--body-copy-font);
  font-size: 0.91rem;
  font-weight: 300;
  line-height: 1.7;
}

.contact-popout-details {
  display: grid;
  gap: 0.68rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.contact-popout-details > p:not(.contact-popout-label) {
  margin-top: 0;
  line-height: 1.5;
}

.contact-popout-details > p:last-child {
  margin-bottom: 1rem;
}

.contact-popout-details a {
  color: var(--text-soft);
  font-family: Baskerville, serif;
}

.contact-inline-label {
  color: var(--accent-orange);
  font-family: Baskerville, serif;
}

.contact-popout-form {
  display: grid;
  gap: 0.15rem;
  padding-top: 0.7rem;
}

.contact-form-field {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.7rem;
}

.contact-form-field:last-of-type {
  margin-bottom: 0.2rem;
}

.contact-form-field span {
  color: var(--text);
  font-size: 0.95rem;
}

.contact-form-field input,
.contact-form-field textarea {
  width: 100%;
  border: 1px solid rgba(31, 29, 26, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  padding: 0.8rem 0.9rem;
}

.contact-form-field input {
  padding: 0.62rem 0.9rem;
}

.contact-form-field textarea {
  min-height: 8.5rem;
  resize: none;
  overflow-y: auto;
}

.contact-form-field input:focus,
.contact-form-field textarea:focus {
  outline: none;
  border-color: rgba(31, 29, 26, 0.34);
}

.contact-form-feedback {
  min-height: 0;
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.contact-form-feedback.is-error {
  color: #8c3d36;
}

.portal-forgot-password {
  justify-self: start;
  margin: 0.25rem 0 0.35rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-orange);
  font-family: Baskerville, serif;
  font-size: 0.84rem;
  text-decoration: underline;
  text-underline-offset: 0.16em;
  cursor: pointer;
}

.portal-forgot-password:hover,
.portal-forgot-password:focus-visible {
  color: #8c3d36;
  outline: none;
}

.portal-forgot-password:disabled {
  opacity: 0.55;
  cursor: wait;
}

.portal-popout .contact-form-feedback {
  margin: -0.05rem 0 0.55rem;
}

.portal-popout .contact-form-submit {
  margin-top: 0;
}

.contact-form-submit {
  justify-self: start;
  margin-top: -0.3rem;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(31, 29, 26, 0.18);
  border-radius: 999px;
  background: #676560;
  color: rgba(255, 252, 247, 0.98);
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.68rem 1.4rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.contact-form-submit:hover,
.contact-form-submit:focus-visible {
  background: rgba(189, 122, 73, 0.08);
  color: var(--accent-orange);
  border-color: rgba(189, 122, 73, 0.28);
  outline: none;
}

.portal-dev-link {
  justify-self: start;
  margin-top: -0.2rem;
  color: var(--accent-orange);
  font-family: var(--body-copy-font);
  font-size: 0.86rem;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.contact-page {
  flex: 1;
  padding: 3rem 0;
}

.contact-intro {
  display: flex;
  justify-content: center;
}

.contact-content {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.85fr);
  gap: 2.5rem;
  align-items: start;
  padding-top: 3rem;
}

.contact-card {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.contact-card h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.08;
}

.contact-card p,
.contact-details p {
  margin: 1rem 0 0;
  color: var(--text-soft);
  font-family: var(--body-copy-font);
  font-size: 0.93rem;
  font-weight: 300;
  line-height: 1.7;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: 2rem;
}

.contact-detail-block {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.contact-label {
  color: var(--text);
  font-size: 1rem;
}

.legal-page {
  flex: 1;
  padding: 3rem 0;
}

.portal-page {
  flex: 1;
  padding: 3rem 0;
}

.portal-loading .portal-content {
  opacity: 0;
  pointer-events: none;
}

.portal-content {
  transition: opacity 180ms ease;
}

.legal-content {
  display: flex;
  justify-content: center;
}

.portal-content {
  display: flex;
  justify-content: center;
}

.legal-card {
  width: min(100%, 52rem);
  padding: 2rem 0;
}

.portal-card {
  width: min(100%, 48rem);
  padding: 2rem 0;
}

.portal-login-content {
  align-items: center;
  min-height: clamp(24rem, 62vh, 36rem);
}

.portal-login-card {
  width: min(100%, 28rem);
}

.portal-login-panel {
  padding: 1.5rem 1.55rem 1.35rem;
}

.portal-login-title-row {
  justify-content: flex-start;
}

.portal-login-title-row h1 {
  color: var(--accent-orange);
}

.portal-login-session-line {
  color: var(--text);
  font-family: Baskerville, serif;
  font-size: 0.96rem;
}

.portal-login-panel .contact-popout-form {
  padding-top: 0.95rem;
}

.header-portal-link-placeholder {
  visibility: hidden;
}

.legal-card h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.08;
}

.portal-card h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.08;
}

.portal-page-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.portal-page-title-row h1 {
  flex: 1 1 auto;
}

.legal-card h2 {
  margin: 2.4rem 0 0;
  color: var(--text);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 400;
  line-height: 1.2;
}

.legal-card h3 {
  margin: 1.4rem 0 0;
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1.3;
}

.legal-card p {
  margin: 1rem 0 0;
  color: var(--text-soft);
  font-family: var(--body-copy-font);
  font-size: 0.91rem;
  font-weight: 300;
  line-height: 1.72;
}

.portal-card p {
  margin: 1rem 0 0;
  color: var(--text-soft);
  font-family: var(--body-copy-font);
  font-size: 0.93rem;
  font-weight: 300;
  line-height: 1.7;
}

.portal-session-line {
  margin: 0.7rem 0 0;
  color: var(--accent-orange);
  font-size: 0.95rem;
}

.portal-role-view[hidden] {
  display: none;
}

[data-architect-only][hidden] {
  display: none !important;
}

.portal-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.portal-stat-card,
.portal-panel {
  padding: 1.2rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.52);
}

.portal-stat-label {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.portal-stat-value {
  margin: 0.5rem 0 0;
  color: var(--text);
  font-size: 2rem;
  line-height: 1;
}

.portal-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.portal-panel {
  margin-top: 1rem;
}

.portal-panel-wide {
  grid-column: 1 / -1;
}

.portal-panel h2,
.portal-panel h3 {
  margin: 0;
  color: var(--text);
  font-weight: 400;
}

.portal-doc-summary h3,
.portal-subdoc-summary {
  font-family: Baskerville, serif;
  font-weight: 300;
}

.portal-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.portal-project-details-header {
  padding-bottom: 0.75rem;
  border-bottom: var(--divider-stroke);
}

.portal-dashboard-header {
  padding-bottom: 0.75rem;
  border-bottom: var(--divider-stroke);
}

.portal-dashboard-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.portal-documents-header {
  padding-bottom: 0.75rem;
  border-bottom: var(--divider-stroke);
}

.portal-stage-header {
  padding-bottom: 0.75rem;
  border-bottom: var(--divider-stroke);
}

.portal-stage-body {
  min-height: 2.5rem;
}

.portal-task-tracker-body {
  min-height: 3.25rem;
  border-top: 0;
}

.portal-task-tracker-layout {
  display: grid;
  grid-template-columns: minmax(15rem, 1fr) minmax(0, 2fr);
  gap: 1rem;
  margin-top: 1rem;
  align-items: start;
}

.portal-task-tracker-layout > .portal-panel {
  margin-top: 0;
}

.portal-task-topics-panel,
.portal-task-detail-panel {
  min-width: 0;
}

.portal-task-topics-panel {
  padding: 0;
  overflow: hidden;
}

.portal-task-topics-header {
  position: relative;
  align-items: center;
  padding: 1.08rem 1.25rem 0.75rem;
  border-bottom: 0;
}

.portal-task-topics-header::after {
  content: "";
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 0;
  height: 1px;
  background: var(--line);
  pointer-events: none;
}

.portal-task-topics-add-button {
  width: 2.05rem;
  height: 2.05rem;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(31, 29, 26, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.portal-task-topics-add-button span {
  display: inline-block;
  transform: translateY(-0.04em);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1;
}

.portal-task-topics-add-button:hover,
.portal-task-topics-add-button:focus-visible {
  outline: none;
  border-color: rgba(189, 122, 73, 0.28);
  background: rgba(189, 122, 73, 0.08);
  color: var(--accent-orange);
  box-shadow: 0 0 0 2px rgba(189, 122, 73, 0.1);
}

.portal-task-topics-header-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.portal-task-topics-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.7rem 0.35rem;
}

.portal-task-topic-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.62rem 0.95rem;
  margin: 0;
  border: 1px solid rgba(31, 29, 26, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.portal-task-topic-button:hover,
.portal-task-topic-button:focus-visible {
  outline: none;
  background: transparent;
  box-shadow: none;
  transform: translateX(0.2rem);
}

.portal-task-topic-button.is-active {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(210, 147, 103, 0.52);
  box-shadow: inset 0 0 0 0.55px rgba(210, 147, 103, 0.52);
}

.portal-task-topic-button.is-complete {
  color: rgba(31, 29, 26, 0.46);
}

.portal-task-topic-button.is-complete .portal-task-topic-title {
  color: rgba(31, 29, 26, 0.52);
}

.portal-task-topic-button.is-complete .portal-task-topic-badge {
  background: rgba(31, 29, 26, 0.08);
  color: rgba(31, 29, 26, 0.48);
}

.portal-task-topic-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1 1 auto;
}

.portal-task-topic-title {
  color: var(--text);
  font-family: var(--body-copy-font);
  font-size: 0.9rem;
  line-height: 1.2;
  font-weight: 300;
}

.portal-task-topic-button.is-active .portal-task-topic-title {
  color: var(--accent-orange);
  font-weight: 400;
}

.portal-task-topic-button.has-unread .portal-task-topic-title {
  font-weight: 500;
}

.portal-task-topic-badge {
  min-width: 1.3rem;
  height: 1.3rem;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.22rem;
  border-radius: 999px;
  background: rgba(189, 122, 73, 0.14);
  color: rgba(73, 43, 23, 0.96);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 0.64rem;
  font-weight: 500;
  line-height: 1;
}

.portal-task-tracker-title {
  display: inline-block;
  margin: 0;
  padding-top: 0.95rem;
  color: var(--text);
  font-family: Baskerville, serif;
  font-size: 1rem;
  text-decoration: none;
}

.portal-task-tracker-title:hover,
.portal-task-tracker-title:focus-visible {
  color: var(--accent-orange);
  outline: none;
}

.portal-task-tracker-heading-input {
  max-width: 22rem;
  padding: 0.28rem 0.4rem;
  font-family: Baskerville, serif;
  font-size: 1.06rem;
  font-weight: 400;
}

.portal-task-tracker-page-body {
  padding-top: 0.8rem;
}

.portal-task-tracker-header {
  align-items: center;
}

.portal-task-tracker-header-copy {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  flex: 1 1 auto;
}

.portal-task-tracker-header-copy h2 {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.portal-task-tracker-heading-input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
}

.portal-task-status-toggle {
  width: 1.45rem;
  height: 1.45rem;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(31, 29, 26, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: rgba(73, 43, 23, 0.92);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.portal-task-status-toggle:hover,
.portal-task-status-toggle:focus-visible {
  outline: none;
  border-color: rgba(189, 122, 73, 0.4);
  box-shadow: 0 0 0 2px rgba(189, 122, 73, 0.1);
}

.portal-task-status-toggle.is-complete {
  border-color: rgba(189, 122, 73, 0.32);
  background: rgba(189, 122, 73, 0.16);
}

.portal-task-status-check {
  font-size: 0.72rem;
  line-height: 1;
  opacity: 0;
  transform: scale(0.84);
  transition: opacity 180ms ease, transform 180ms ease;
}

.portal-task-status-toggle.is-complete .portal-task-status-check {
  opacity: 1;
  transform: scale(1);
}

.portal-task-thread-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.portal-task-thread-compose {
  margin-top: 0.9rem;
}

.portal-task-thread-input {
  width: 100%;
  min-height: 6rem;
  resize: vertical;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.55;
  box-sizing: border-box;
}

.portal-task-thread-input:focus {
  outline: none;
  border-color: rgba(189, 122, 73, 0.45);
  box-shadow: 0 0 0 2px rgba(189, 122, 73, 0.12);
}

.portal-task-thread-compose-footer {
  display: flex;
  justify-content: flex-start;
  margin-top: 0.65rem;
}

.portal-task-comment {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  max-width: 100%;
}

.portal-task-comment-avatar {
  flex: 0 0 auto;
  width: 1.45rem;
  height: 1.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(189, 122, 73, 0.28);
  background: rgba(189, 122, 73, 0.16);
  color: rgba(73, 43, 23, 0.92);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  overflow: hidden;
}

.portal-task-comment-delete {
  flex: 0 0 auto;
  width: 1.45rem;
  height: 1.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(189, 122, 73, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: rgba(73, 43, 23, 0.92);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 0.86rem;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.portal-task-comment-delete:hover,
.portal-task-comment-delete:focus-visible {
  outline: none;
  border-color: rgba(189, 122, 73, 0.42);
  background: rgba(189, 122, 73, 0.08);
  color: var(--accent-orange);
  box-shadow: 0 0 0 2px rgba(189, 122, 73, 0.1);
}

.portal-task-comment-bubble {
  max-width: min(41rem, calc(100% - 3.1rem));
  padding: 0;
  border: none;
  background: transparent;
  flex: 0 1 auto;
}

.portal-task-comment-bubble p {
  margin: 0;
  color: var(--text);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.55;
}

.portal-task-tracker-field + .portal-task-tracker-field {
  margin-top: 1.2rem;
}

.portal-task-tracker-field h3 {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 400;
}

.portal-task-tracker-field-description {
  min-height: 7rem;
}

.portal-stage-pills {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.65rem;
  padding-top: 1rem;
}

.portal-stage-pill {
  --stage-fill: rgba(189, 122, 73, 0.16);
  --stage-fill-strong: rgba(189, 122, 73, 0.28);
  --stage-border: rgba(189, 122, 73, 0.24);
  --stage-selected-text: rgba(73, 43, 23, 0.96);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.38rem 0.8rem;
  border: 1px solid rgba(31, 29, 26, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 300;
  text-align: center;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.portal-stage-pill:hover,
.portal-stage-pill:focus-visible {
  border-color: rgba(189, 122, 73, 0.38);
  background: rgba(189, 122, 73, 0.08);
  color: var(--accent-orange);
  outline: none;
}

.portal-stage-pill.is-selected,
.portal-stage-pill[aria-pressed="true"] {
  border-color: rgba(189, 122, 73, 0.46);
  background: var(--stage-fill-strong);
  color: var(--stage-selected-text);
  box-shadow: inset 0 0 0 1px rgba(189, 122, 73, 0.1);
}

.portal-panel h2 {
  font-size: 1.25rem;
}

.portal-panel h3 {
  font-size: 1rem;
}

.portal-project-list,
.portal-action-list,
.portal-doc-list,
.portal-status-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.portal-doc-group {
  display: grid;
  gap: 0.58rem;
}

.portal-doc-group-title {
  margin: 0 0 0 0.15rem;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 400;
}

.portal-doc-disclosure {
  padding: 0.3rem 1rem 0.85rem;
  border: 1px solid rgba(31, 29, 26, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
}

.portal-doc-disclosure:not([open]) {
  padding-bottom: 0.45rem;
}

.portal-doc-disclosure:not([open]) .portal-doc-summary {
  padding: 0.45rem 0;
}

.portal-doc-disclosure-static {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.portal-doc-summary {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 0.6rem 0 0;
  list-style: none;
  cursor: pointer;
  position: relative;
}

.portal-doc-summary > div {
  flex: 1;
}

.portal-doc-summary::-webkit-details-marker {
  display: none;
}

.portal-doc-arrow {
  flex: 0 0 auto;
  color: var(--accent-orange);
  font-size: 1.08rem;
  transition: transform 180ms ease;
}

.portal-doc-disclosure[open] > .portal-doc-summary .portal-doc-arrow {
  transform: rotate(180deg);
}

.portal-doc-disclosure[open] > .portal-doc-summary {
  padding-bottom: 0.6rem;
}

.portal-doc-disclosure[open] > .portal-doc-summary::after {
  content: "";
  position: absolute;
  left: calc(1.08rem + 0.72rem);
  right: 0;
  bottom: 0;
  border-bottom: 1px solid var(--line);
}

.portal-doc-body {
  padding: 0.45rem 0 0;
}

.portal-doc-body-static {
  padding-top: 0;
}

.portal-doc-disclosure-static .portal-doc-body-static {
  padding: 0.02rem 0 0 0;
}

.portal-doc-body p {
  margin: 0;
  font-size: 0.88rem;
}

.portal-empty-state {
  display: inline-block;
  color: var(--text-soft);
  font-family: var(--body-copy-font);
  font-size: 0.82rem;
  font-weight: 300;
  font-style: italic;
}

.portal-subdoc-disclosure {
  margin-left: 0;
  padding: 0.08rem 0.95rem 0.08rem 0.82rem;
  border: 1px solid rgba(189, 122, 73, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.97);
}

.portal-subdoc-disclosure + .portal-subdoc-disclosure {
  margin-top: 0.5rem;
}

.portal-subdoc-summary {
  display: flex;
  gap: 0.58rem;
  align-items: center;
  padding: 0.55rem 0 0.5rem;
  list-style: none;
  cursor: pointer;
  color: var(--text);
  font-family: Baskerville, "Times New Roman", serif;
  font-size: 0.92rem;
  font-weight: 400;
  position: relative;
}

.portal-subdoc-label {
  flex: 1;
}

.portal-subdoc-summary::-webkit-details-marker {
  display: none;
}

.portal-subdoc-disclosure[data-empty="true"] > .portal-subdoc-summary {
  color: rgba(31, 29, 26, 0.5);
}

.portal-subdoc-disclosure[data-empty="true"] > .portal-subdoc-summary .portal-doc-arrow {
  color: rgba(31, 29, 26, 0.34);
  transform: rotate(-90deg);
}

.portal-subdoc-disclosure[data-empty="true"] > .portal-subdoc-summary:hover,
.portal-subdoc-disclosure[data-empty="true"] > .portal-subdoc-summary:focus-visible {
  color: rgba(31, 29, 26, 0.5);
  outline: none;
}

.portal-subdoc-disclosure[open] > .portal-subdoc-summary .portal-doc-arrow {
  transform: rotate(180deg);
}

.portal-subdoc-disclosure[open] > .portal-subdoc-summary {
  border-bottom: 1px solid var(--line);
}

.portal-subdoc-reorder {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  border: 1px solid rgba(31, 29, 26, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text-soft);
  line-height: 1;
  padding: 0;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, opacity 180ms ease;
}

.portal-subdoc-disclosure[open] > .portal-subdoc-summary .portal-subdoc-reorder {
  display: inline-flex;
}

.portal-subdoc-reorder svg {
  width: 1.18rem;
  height: 1.18rem;
  fill: currentColor;
}

.portal-subdoc-reorder:hover,
.portal-subdoc-reorder:focus-visible {
  border-color: rgba(189, 122, 73, 0.28);
  background: rgba(189, 122, 73, 0.08);
  color: var(--accent-orange);
  outline: none;
}

.portal-subdoc-reorder:disabled {
  opacity: 0.44;
  cursor: default;
  pointer-events: none;
}

.portal-subdoc-body {
  padding: 0.38rem 0 0.38rem 0;
}

.portal-project-item,
.portal-status-item,
.portal-project-summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.portal-doc-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.34rem 0 0.28rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.portal-doc-item + .portal-doc-item {
  margin-top: 0.34rem;
  padding-top: 0.42rem;
  border-top: 1px solid var(--line);
}

.portal-project-button {
  width: 100%;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: color 180ms ease, transform 180ms ease;
  text-decoration: none;
}

.portal-project-button:hover,
.portal-project-button:focus-visible {
  color: var(--accent-orange);
  outline: none;
}

.portal-project-button.is-complete {
  color: rgba(31, 29, 26, 0.46);
}

.portal-project-button.is-complete .portal-project-title {
  color: rgba(31, 29, 26, 0.52);
}

.portal-project-title-wrap {
  flex: 1;
  min-width: 0;
}

.portal-project-form-item .portal-project-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.68rem;
}

.portal-project-task-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.68rem;
  flex: 1;
  min-width: 0;
}

.portal-project-task-unread-badge {
  flex-shrink: 0;
  width: 1.22rem;
  height: 1.22rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(189, 122, 73, 0.12);
  color: var(--accent-orange);
  font-family: var(--heading-font);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1;
  transition: background 180ms ease, color 180ms ease;
}

.portal-project-button.is-complete .portal-project-task-unread-badge {
  background: rgba(31, 29, 26, 0.08);
  color: rgba(31, 29, 26, 0.48);
}

.portal-form-status-icon {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(31, 29, 26, 0.24);
  background: transparent;
  color: transparent;
  font-family: var(--body-copy-font);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.portal-form-status-icon.is-submitted {
  border-color: rgba(189, 122, 73, 0.38);
  background: rgba(189, 122, 73, 0.16);
  color: var(--accent-orange);
}

.portal-project-form-item:hover .portal-form-status-icon,
.portal-project-form-item:focus-visible .portal-form-status-icon {
  border-color: rgba(189, 122, 73, 0.36);
}

.portal-project-title {
  display: inline-block;
  width: 100%;
  min-width: 13rem;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.portal-project-title[data-editing="true"] {
  padding: 0.4rem 0.65rem;
  border-color: rgba(31, 29, 26, 0.14);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.46);
}

.portal-project-title[data-editing="true"]:focus {
  border-color: rgba(189, 122, 73, 0.28);
  background: rgba(255, 252, 247, 0.95);
  outline: none;
}

.portal-project-delete {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.46rem 0.9rem;
  border: 1px solid rgba(31, 29, 26, 0.16);
  border-radius: 999px;
  background: rgba(255, 248, 241, 0.92);
  color: var(--text);
  font: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.portal-project-delete[hidden] {
  display: none !important;
}

.portal-project-delete:hover,
.portal-project-delete:focus-visible {
  border-color: rgba(189, 122, 73, 0.3);
  background: rgba(246, 228, 211, 0.92);
  color: var(--accent-orange);
  outline: none;
}

.portal-project-button:hover .portal-status-chip,
.portal-project-button:focus-visible .portal-status-chip {
  background: rgba(189, 122, 73, 0.16);
}

.portal-project-button:hover,
.portal-project-button:focus-visible {
  transform: translateX(0.2rem);
}

.portal-project-item:first-child,
.portal-status-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.portal-project-list-clean .portal-project-item {
  padding-top: 0;
  border-top: 0;
}

.portal-status-item {
  justify-content: flex-start;
  gap: 0.45rem;
  padding-top: 0.4rem;
  border-top: 0;
}

.portal-status-list {
  gap: 0.45rem;
}

.portal-project-item p,
.portal-doc-item p,
.portal-status-item p,
.portal-project-summary p {
  margin: 0;
  font-size: 0.88rem;
}

.project-brief-project-meta {
  margin-bottom: 1.25rem;
}

.project-brief-project-meta .portal-project-summary {
  justify-content: flex-start;
}

.project-brief-project-meta strong {
  font-weight: 400;
}

.project-brief-submit-row {
  display: flex;
  justify-content: flex-start;
  margin-top: 1.4rem;
}

.project-brief-submit-button {
  min-width: 8.5rem;
}

.project-brief-submit-feedback {
  margin-top: 0.65rem;
}

.project-brief-choice-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
}

.project-brief-detail-item {
  display: block;
}

.portal-panel .portal-status-list > .project-brief-detail-item + .project-brief-detail-item,
.portal-panel .portal-status-list > .portal-status-item + .project-brief-detail-item {
  margin-top: 0.9rem;
}

.project-brief-bedroom-group + .project-brief-bedroom-group {
  margin-top: 0.9rem;
}

.project-brief-floor-group + .project-brief-floor-group {
  margin-top: 0.9rem;
}

[data-project-brief-followup="floors-container"] {
  margin-top: 0.9rem;
}

[data-project-brief-followup="floors-container"] + .project-brief-detail-item {
  margin-top: 0.9rem;
}

.project-brief-floor-options {
  display: flex;
  flex-direction: column;
  margin-top: 0.7rem;
}

.project-brief-floor-options .project-brief-subquestion {
  margin-left: 1.35rem;
}

.project-brief-subquestion span {
  font-family: "Open Sans", sans-serif;
  font-weight: 300;
  font-size: 0.84rem;
}

.project-brief-subheading {
  margin: 0 0 0.7rem;
  color: var(--accent-orange);
  font-family: Baskerville, "Times New Roman", serif;
  font-size: 1.02rem;
  font-weight: 400;
}

.project-brief-subquestion {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.6rem;
  margin-left: 1.35rem;
}

.project-brief-subquestion + .project-brief-subquestion {
  margin-top: 0.78rem;
}

.project-brief-subquestion span {
  flex: 1 1 auto;
  margin: 0;
}

.project-brief-checkbox-question {
  cursor: pointer;
}

.project-brief-other-question {
  align-items: center;
  flex-direction: row;
  flex-wrap: wrap;
}

.project-brief-subquestion + .project-brief-other-question {
  margin-top: 0.5rem;
}

.project-brief-other-question .project-brief-checkbox-question {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.project-brief-other-input {
  flex: 1 1 14rem;
  width: auto;
  min-height: 2.1rem;
  margin-left: 0;
  padding: 0.3rem 0.7rem;
  border: 1px solid rgba(31, 29, 26, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  font-family: "Open Sans", sans-serif;
  font-size: 0.84rem;
  font-weight: 300;
  line-height: 1.35;
}

.project-brief-other-input:focus {
  outline: none;
  border-color: rgba(189, 122, 73, 0.4);
}

.project-brief-checkbox {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: var(--accent-orange);
}

.project-brief-choice-pill {
  flex: 0 0 auto;
  min-width: 2.35rem;
  min-height: 2.35rem;
  padding: 0.3rem;
  border: 1px solid rgba(31, 29, 26, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 300;
  text-align: center;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.project-brief-choice-pill-wide {
  min-width: 3.35rem;
  min-height: 2.1rem;
  padding-inline: 0.65rem;
}

.project-brief-choice-pill:hover,
.project-brief-choice-pill:focus-visible {
  border-color: rgba(189, 122, 73, 0.38);
  background: rgba(189, 122, 73, 0.08);
  color: var(--accent-orange);
  outline: none;
}

.project-brief-choice-pill[aria-pressed="true"] {
  border-color: rgba(189, 122, 73, 0.46);
  background: rgba(189, 122, 73, 0.28);
  color: rgba(73, 43, 23, 0.96);
  box-shadow: inset 0 0 0 1px rgba(189, 122, 73, 0.1);
}

.portal-doc-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.portal-doc-title-row {
  display: flex;
  align-items: center;
  gap: 0.42rem;
}

.portal-doc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1.08rem;
  height: 1.08rem;
  color: var(--accent-orange);
}

.portal-doc-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: rgba(189, 122, 73, 0.18);
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
}

.portal-doc-item .portal-doc-title {
  color: var(--text);
  font-family: var(--body-copy-font) !important;
  font-weight: 300;
  font-size: 0.76rem;
  text-decoration: none;
}

.portal-doc-item a.portal-doc-title:hover,
.portal-doc-item a.portal-doc-title:focus-visible {
  color: var(--accent-orange);
  text-decoration: underline;
  outline: none;
}

.portal-doc-item .portal-doc-meta {
  display: block;
  margin-top: 0.2rem;
  margin-left: 0;
  padding-left: 1.5rem;
  color: rgba(31, 29, 26, 0.42);
  font-size: 0.56rem;
  line-height: 1.35;
}

.portal-doc-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}

.portal-doc-menu {
  position: relative;
}

.portal-doc-menu summary {
  list-style: none;
}

.portal-doc-menu summary::-webkit-details-marker {
  display: none;
}

.portal-doc-menu-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  min-width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid rgba(31, 29, 26, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.portal-doc-menu-trigger svg {
  width: 0.9rem;
  height: 0.9rem;
  fill: currentColor;
}

.portal-doc-menu-trigger:hover,
.portal-doc-menu-trigger:focus-visible,
.portal-doc-menu[open] .portal-doc-menu-trigger {
  border-color: rgba(189, 122, 73, 0.3);
  background: rgba(246, 228, 211, 0.92);
  color: var(--accent-orange);
  outline: none;
}

.portal-doc-menu-list {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  display: grid;
  min-width: 8.2rem;
  padding: 0.35rem;
  border: 1px solid rgba(31, 29, 26, 0.12);
  border-radius: 14px;
  background: rgba(255, 252, 247, 0.98);
  box-shadow: 0 16px 28px rgba(31, 29, 26, 0.12);
  z-index: 15;
}

.portal-doc-menu-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 2rem;
  padding: 0.42rem 0.7rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.76rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.portal-doc-menu-item:hover,
.portal-doc-menu-item:focus-visible {
  background: rgba(246, 228, 211, 0.92);
  color: var(--accent-orange);
  outline: none;
}

.portal-doc-menu-item-delete {
  color: #8c3d36;
}

.portal-doc-menu-item-delete:hover,
.portal-doc-menu-item-delete:focus-visible {
  background: rgba(140, 61, 54, 0.12);
  color: #8c3d36;
}

.doc-reorder-subtitle {
  margin-top: 0.22rem;
  color: var(--text-soft);
  font-family: Baskerville, "Times New Roman", serif;
}

.doc-reorder-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.25rem;
}

.upload-modal [data-doc-reorder-feedback] {
  min-height: 1.2rem;
  margin-top: 0.2rem;
  margin-bottom: 0.45rem;
}

.doc-reorder-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.64rem 0.88rem;
  border: 1px solid rgba(31, 29, 26, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
}

.doc-reorder-label {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
}

.doc-reorder-position {
  flex: 0 0 auto;
  color: var(--text-soft);
  font-family: Baskerville, "Times New Roman", serif;
  font-size: 0.8rem;
  font-weight: 400;
}

.doc-reorder-name {
  min-width: 0;
  color: var(--text);
  font-family: Baskerville, "Times New Roman", serif;
  font-size: 0.9rem;
  font-weight: 400;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.doc-reorder-actions {
  flex: 0 0 auto;
  display: inline-flex;
  gap: 0.45rem;
}

.doc-reorder-move {
  border: 1px solid rgba(31, 29, 26, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font-family: Baskerville, "Times New Roman", serif;
  font-size: 0.8rem;
  font-weight: 400;
  padding: 0.34rem 0.72rem;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, opacity 180ms ease;
}

.doc-reorder-move:hover,
.doc-reorder-move:focus-visible {
  border-color: rgba(189, 122, 73, 0.28);
  background: rgba(189, 122, 73, 0.08);
  color: var(--accent-orange);
  outline: none;
}

.doc-reorder-move:disabled {
  opacity: 0.42;
  cursor: default;
  pointer-events: none;
}

.upload-modal [data-doc-reorder-save],
.upload-modal [data-doc-reorder-close] {
  margin-top: 0;
  font-family: Baskerville, "Times New Roman", serif;
  font-weight: 400;
}

.upload-modal [data-doc-reorder-feedback] {
  font-family: Baskerville, "Times New Roman", serif;
}

.portal-inline-field {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  padding: 0.2rem 0 0.2rem 0.25rem;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--body-copy-font);
  font-size: 0.88rem;
  font-weight: 300;
  text-align: left;
  outline: none;
  transition: border-color 180ms ease, background 180ms ease;
}

.portal-status-item h3 {
  flex: 0 0 auto;
}

.portal-inline-field::placeholder {
  color: rgba(31, 29, 26, 0.38);
}

.portal-inline-field:disabled {
  color: var(--text);
  opacity: 1;
  cursor: default;
}

.portal-inline-field:not(:disabled) {
  border-bottom-color: rgba(31, 29, 26, 0.18);
  background: rgba(255, 255, 255, 0.5);
}

.portal-inline-field:not(:disabled):focus {
  border-bottom-color: rgba(189, 122, 73, 0.42);
}

.portal-status-chip {
  --stage-fill: rgba(189, 122, 73, 0.28);
  --stage-border: rgba(189, 122, 73, 0.46);
  flex: 0 0 auto;
  min-width: 6.9rem;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  border: 1px solid var(--stage-border);
  background: var(--stage-fill);
  color: rgba(73, 43, 23, 0.96);
  font-size: 0.76rem;
  letter-spacing: 0.01em;
  text-align: center;
  text-transform: capitalize;
}

.portal-action-button,
.portal-download-button {
  justify-self: start;
  padding: 0.38rem 0.8rem;
  border: 1px solid rgba(31, 29, 26, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 300;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.portal-action-button:hover,
.portal-action-button:focus-visible,
.portal-download-button:hover,
.portal-download-button:focus-visible {
  border-color: rgba(189, 122, 73, 0.28);
  background: rgba(189, 122, 73, 0.08);
  color: var(--accent-orange);
  outline: none;
}

.portal-inline-button {
  padding: 0.38rem 0.8rem;
  border: 1px solid rgba(31, 29, 26, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 300;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.portal-inline-button:hover,
.portal-inline-button:focus-visible {
  border-color: rgba(189, 122, 73, 0.28);
  background: rgba(189, 122, 73, 0.08);
  color: var(--accent-orange);
  outline: none;
}

.portal-back-link {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  padding: 0.38rem 0.8rem;
  border: 1px solid rgba(31, 29, 26, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  margin-bottom: 1rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 300;
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.portal-back-link:hover,
.portal-back-link:focus-visible {
  border-color: rgba(189, 122, 73, 0.28);
  background: rgba(189, 122, 73, 0.08);
  color: var(--accent-orange);
  outline: none;
}

.upload-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
}

.upload-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(31, 29, 26, 0.26);
  opacity: 0;
  transition: opacity 220ms ease;
}

.upload-modal-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(calc(100% - 2rem), 34rem);
  max-height: min(42rem, calc(100dvh - 2rem));
  padding: 1.5rem 1.5rem 1.35rem;
  background: rgba(255, 252, 247, 0.98);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(31, 29, 26, 0.16);
  transform: translate(-50%, -48%);
  opacity: 0;
  transition: opacity 220ms ease, transform 220ms ease;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}

.upload-modal.is-open {
  pointer-events: auto;
}

.upload-modal.is-open .upload-modal-backdrop {
  opacity: 1;
}

.upload-modal.is-open .upload-modal-panel {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.contact-form-field select {
  width: 100%;
  border: 1px solid rgba(31, 29, 26, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  padding: 0.8rem 0.9rem;
}

.upload-modal .contact-form-field input[type="text"],
.upload-modal .contact-form-field select {
  min-height: 3rem;
}

.upload-modal .contact-popout-body,
.upload-modal .contact-popout-form,
.upload-modal .contact-form-field {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.upload-modal .contact-form-field input,
.upload-modal .contact-form-field select,
.upload-file-picker {
  display: block;
  width: 100%;
  max-width: 100%;
}

.upload-modal .contact-popout-form {
  gap: 0.7rem;
}

.upload-modal .contact-form-field,
.upload-modal .contact-form-field:last-of-type {
  margin-bottom: 0;
}

.upload-modal .contact-form-submit {
  margin-top: -0.45rem;
  padding: 0.54rem 1.15rem;
  font-size: 0.88rem;
}

.upload-notify-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.45rem;
  margin-bottom: -0.1rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 300;
}

.upload-notify-toggle input {
  margin: 0;
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  accent-color: var(--accent-orange);
}

.upload-file-picker {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  max-width: 100%;
  min-height: 3rem;
  padding: 0.4rem 0.45rem;
  border: 1px solid rgba(31, 29, 26, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.62);
  box-sizing: border-box;
}

.upload-file-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.38rem 0.8rem;
  border: 1px solid rgba(31, 29, 26, 0.14);
  border-radius: 999px;
  background: rgba(189, 122, 73, 0.08);
  color: var(--text);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 300;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.upload-file-trigger:hover,
.upload-file-trigger:focus-visible {
  border-color: rgba(189, 122, 73, 0.28);
  background: rgba(189, 122, 73, 0.14);
  color: var(--accent-orange);
}

.upload-file-name {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--text-soft);
  font-family: var(--body-copy-font);
  font-size: 0.88rem;
  font-weight: 300;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upload-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.upload-modal .contact-form-field select {
  appearance: none;
  -webkit-appearance: none;
}

.permissions-modal-body {
  min-height: 2rem;
}

.permissions-form {
  padding-top: 0.85rem;
}

.permissions-name-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.permissions-name-row .contact-form-field {
  margin: 0;
  min-width: 0;
}

.admin-user-selector {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.client-user-selector {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-user-chip {
  min-height: 2.1rem;
  padding: 0.24rem 0.7rem;
  border: 1px solid rgba(31, 29, 26, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 300;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.admin-user-chip:hover,
.admin-user-chip:focus-visible {
  border-color: rgba(189, 122, 73, 0.28);
  background: rgba(189, 122, 73, 0.08);
  color: var(--accent-orange);
  outline: none;
}

.admin-user-chip.is-selected,
.admin-user-chip[aria-pressed="true"] {
  border-color: rgba(189, 122, 73, 0.42);
  background: var(--accent-orange);
  color: rgba(255, 252, 247, 0.98);
  box-shadow: inset 0 0 0 1px rgba(189, 122, 73, 0.1);
}

.permissions-credentials-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.permissions-credentials-row input {
  flex: 1 1 auto;
  min-width: 0;
}

.permissions-form input[type="email"],
.permissions-form input[type="text"] {
  min-height: 3rem;
}

.permissions-form input.is-readonly {
  background: rgba(255, 255, 255, 0.48);
  color: rgba(31, 29, 26, 0.82);
  border-color: rgba(31, 29, 26, 0.1);
  cursor: default;
}

.permissions-form input.is-readonly:focus {
  outline: none;
  border-color: rgba(31, 29, 26, 0.1);
}

.permissions-actions-row.is-readonly .permissions-cancel-button,
.permissions-actions-row.is-readonly + .permissions-generate-row .admin-permissions-generate-button,
.permissions-actions-row.is-readonly ~ .permissions-generate-row .admin-permissions-generate-button {
  display: none;
}

.permissions-actions-row:not(.is-readonly) .permissions-delete-button,
.permissions-actions-row:not(.is-readonly) .permissions-send-button {
  display: none;
}

.permissions-actions-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 0.1rem;
}

.permissions-action-button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.permissions-footer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  width: 100%;
}

.permissions-primary-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: nowrap;
}

.admin-permissions-footer-actions {
  margin-top: 0.55rem;
  justify-content: flex-start;
}

.permissions-generate-row,
.admin-permissions-generate-row {
  display: flex;
  justify-content: flex-start;
  margin-top: -0.15rem;
  margin-bottom: 0.15rem;
}

.client-permissions-footer-actions {
  margin-top: 0.45rem;
  justify-content: flex-start;
}

.permissions-save-button,
.permissions-cancel-button,
.permissions-send-button {
  margin-top: 0;
  margin-bottom: 0;
  margin-left: auto;
}

.permissions-cancel-button {
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  border-color: rgba(31, 29, 26, 0.14);
}

.permissions-cancel-button:hover,
.permissions-cancel-button:focus-visible {
  background: rgba(31, 29, 26, 0.06);
  color: var(--text);
  border-color: rgba(31, 29, 26, 0.24);
}

.permissions-send-button {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(31, 29, 26, 0.14);
  color: var(--text);
}

.permissions-send-button:hover,
.permissions-send-button:focus-visible {
  background: rgba(189, 122, 73, 0.12);
  color: var(--text);
  border-color: rgba(31, 29, 26, 0.24);
}

.permissions-delete-button {
  margin-top: 0;
  margin-bottom: 0;
  background: rgba(140, 61, 54, 0.9);
  border-color: rgba(140, 61, 54, 0.45);
  color: rgba(255, 252, 247, 0.98);
}

.permissions-delete-button:hover,
.permissions-delete-button:focus-visible {
  background: rgba(140, 61, 54, 0.12);
  color: #8c3d36;
  border-color: rgba(140, 61, 54, 0.28);
}

.admin-permissions-generate-button {
  border-color: rgba(31, 29, 26, 0.1);
  background: rgba(255, 255, 255, 0.48);
  color: var(--text-soft);
}

.admin-permissions-footer-actions .permissions-send-button {
  margin-left: auto;
}

.admin-permissions-generate-button:hover,
.admin-permissions-generate-button:focus-visible {
  border-color: rgba(189, 122, 73, 0.2);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
}

.contact-form-field select:focus {
  outline: none;
  border-color: rgba(31, 29, 26, 0.34);
}

.legal-card a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

@media (max-width: 860px) {
  .feature-copy h2 {
    white-space: normal;
  }

  .portal-stats,
  .portal-panel-grid {
    grid-template-columns: 1fr;
  }

  .portal-task-tracker-layout {
    grid-template-columns: 1fr;
  }

  .tile-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-inline: clamp(0.5rem, 2vw, 1rem);
  }

  .about-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-inline: clamp(0.5rem, 2vw, 1rem);
  }

  .contact-content {
    grid-template-columns: 1fr;
  }

  .project-popout-panel {
    width: min(calc(100% - 1.5rem), 58rem);
  }

  .project-popout-arrow {
    width: 2.3rem;
    height: 2.3rem;
  }

  .project-popout-arrow-left {
    left: 0.45rem;
  }

  .project-popout-arrow-right {
    right: 0.45rem;
  }

}

@media (max-width: 560px) {
  .tile-gallery-grid {
    grid-template-columns: 1fr;
    padding-inline: 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    padding-inline: 0;
  }
}

.split-section {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 3rem;
  align-items: stretch;
}

.split-card {
  min-width: 0;
  min-height: clamp(14rem, 24vw, 30rem);
}

.split-card-text {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  display: flex;
  justify-content: flex-end;
}

.split-card-inner {
  width: min(100%, 640px);
  padding: clamp(1.75rem, 2.8vw, 3rem) clamp(1.25rem, 2.2vw, 2.25rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: left;
}

.split-card-text h2 {
  margin: 0 0 1rem;
  font-family: Baskerville, serif;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.1;
}

.split-card-text p:last-child {
  margin: 0;
  max-width: none;
  color: var(--text-soft);
  font-family: var(--body-copy-font);
  font-size: 0.89rem;
  font-weight: 300;
  line-height: 1.7;
}

.split-card-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(220, 214, 205, 0.72)),
    linear-gradient(180deg, rgba(138, 128, 116, 0.08), rgba(31, 29, 26, 0.04));
  color: var(--accent);
  font-family: Baskerville, serif;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.split-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.split-card-image span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  padding-inline: clamp(0.75rem, 2vw, 1.5rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 1rem;
  padding-bottom: 0.18rem;
  align-items: start;
}

.footer-brand {
  align-items: center;
  gap: 0.72rem;
}

.footer-brand .logo-line-primary {
  font-size: clamp(0.98rem, 1.65vw, 1.35rem);
}

.footer-brand .logo-line-secondary {
  font-size: clamp(0.56rem, 0.98vw, 0.74rem);
  letter-spacing: 0.12em;
}

.footer-note,
.footer-email-block p,
.footer-bottom,
.footer-email-block a,
.footer-legal-link {
  margin: 0;
  color: rgba(248, 243, 242, 0.9);
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-brand-block,
.footer-email-block {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-brand-block {
  grid-column: 1;
  grid-row: 1;
  align-items: flex-start;
  justify-self: start;
  margin-top: 0.28rem;
}

.footer-email-block p,
.footer-email-block a {
  font-size: clamp(0.82rem, 1.15vw, 0.95rem);
  line-height: 1.2;
}

.footer-email-block {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  justify-self: start;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-left: 1.15rem;
  border-left: 1px solid var(--line-light);
  margin-top: 0.08rem;
}

.footer-email-block a {
  font-size: clamp(0.82rem, 1.15vw, 0.95rem);
  white-space: nowrap;
  text-align: left;
}

.footer-email-block .contact-inline-label {
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.footer-legal-link {
  grid-column: 4;
  grid-row: 1;
  justify-self: end;
  align-self: end;
  margin-bottom: -0.04rem;
}

.footer-legal-link,
.footer-legal-link:visited {
  color: rgba(248, 243, 242, 0.82);
}

.footer-note {
  max-width: 26rem;
  margin-top: 0.65rem;
}

.footer-heading {
  margin-bottom: 0.25rem;
  color: rgba(248, 243, 242, 0.96);
  font-family: Baskerville, serif;
  font-size: 1.24rem;
  font-weight: 400;
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1.7fr 0.9fr;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-light);
  align-items: center;
}

.footer-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 1rem;
  row-gap: 0.2rem;
}

.footer-bottom > :last-child {
  justify-self: end;
}

.footer-riba-logo {
  display: block;
  max-width: 118px;
  width: 100%;
  height: auto;
}

@media (max-width: 720px) {
  .portal-project-page .portal-status-item {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.25rem 0.6rem;
  }

  .portal-project-page .portal-inline-field {
    flex-basis: 100%;
    padding-left: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .portal-inline-field {
    font-size: 16px;
  }

  .header-portal-link,
  .header-contact-link,
  .header-logout-link {
    min-height: 1.9rem;
    padding: 0.42rem 0.72rem;
    font-size: 0.74rem;
    letter-spacing: 0.045em;
  }

  .portal-stage-pills {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .portal-stage-pill {
    min-height: 2.35rem;
    padding: 0.42rem 0.58rem;
    font-size: 0.8rem;
  }

  .site-header {
    padding: calc(1.5rem + env(safe-area-inset-top, 0px)) 0 1.5rem;
  }

  .site-footer {
    padding: 1.1rem 0;
  }

  .hero {
    padding: 0 0 2rem;
  }

  .feature-image-section {
    margin-top: 1.75rem;
  }

  .brand {
    gap: 0.75rem;
  }

  .header-inner {
    grid-template-columns: 1fr auto 1fr;
    gap: 0.8rem;
  }

  .home-page .header-contact-link {
    right: 1rem;
  }

  .home-page .header-portal-link {
    left: 1rem;
  }

  .site-header .brand {
    justify-self: start;
  }

  .feature-image-frame img {
    height: 18rem;
  }

  .feature-copy {
    padding-top: 2rem;
  }

  .feature-copy h2,
  .tile-gallery-intro h2,
  .about-intro h2,
  .services-section h2 {
    font-size: 1.62rem;
  }

  .contact-page {
    padding: 2rem 0;
  }

  .portal-page,
  .legal-page {
    padding: 2rem 0;
  }

  .contact-content {
    padding-top: 2rem;
  }

  .project-popout-panel {
    width: min(calc(100% - 1rem), 40rem);
    max-height: calc(100dvh - 1rem);
    padding: 1rem;
    border-radius: 24px;
  }

  .project-popout-body {
    gap: 1rem;
    padding-top: 0.35rem;
  }


  .portal-popout-panel,
  .contact-popout-panel {
    width: 100%;
    padding: 0.85rem 1rem 1.15rem;
  }

  .portal-role-group {
    grid-template-columns: 1fr;
  }

  .contact-popout-header {
    position: static;
  }

  .contact-popout-body {
    position: relative;
    padding-top: 0.35rem;
  }

  .contact-popout-title {
    margin: 0;
    padding-right: 0;
  }

  .contact-popout-form {
    padding-top: 0.3rem;
  }

  .contact-form-field {
    margin-bottom: 0.55rem;
  }

  .contact-popout-details {
    gap: 0.56rem;
    margin-top: 1rem;
    padding-top: 0.85rem;
  }

  .contact-popout-details > p:not(.contact-popout-label) {
    margin-top: 0;
    line-height: 1.45;
  }

  .footer-grid {
    gap: 0.85rem;
    align-items: start;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    display: grid;
    gap: 1rem;
  }

  .footer-bottom > :last-child {
    justify-self: start;
  }

  .split-section {
    grid-template-columns: 1fr;
  }

  .split-card {
    min-height: 18rem;
  }

  .split-card-text {
    border-right: none;
  }

  .split-card-inner {
    width: 100%;
    padding: 1.5rem;
  }
}

@media (max-width: 430px) {
  .header-portal-link,
  .header-contact-link,
  .header-logout-link {
    min-height: 1.78rem;
    padding: 0.34rem 0.58rem;
    font-size: 0.68rem;
    letter-spacing: 0.035em;
  }

  .footer-grid {
    grid-template-columns: auto minmax(0, 1fr);
    display: grid;
    gap: 0.9rem;
    align-items: start;
  }

  .footer-email-block {
    grid-column: 2;
    grid-row: 1;
    padding-left: 0.9rem;
  }

  .footer-legal-link {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
    align-self: flex-start;
    margin-top: 0.85rem;
    margin-bottom: 0;
  }
}
