@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&display=swap');

:root {
  --profile-serif: 'Cormorant Garamond', Georgia, serif;
}

.public-profile {
  background: #f5f3ef;
}

.profile-cover {
  position: relative;
  min-height: calc(100svh - 84px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  background: #100b07 url('../img/umberto-ritratto.jpg') center 38% / cover no-repeat;
  color: #f5efe6;
}

.profile-cover-shade {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 4, 3, .94) 0%, rgba(7, 5, 3, .78) 34%, rgba(7, 5, 3, .29) 61%, rgba(7, 5, 3, .08) 100%),
    linear-gradient(0deg, rgba(6, 4, 3, .72) 0%, transparent 38%, rgba(6, 4, 3, .15) 100%);
}

.profile-cover-content {
  width: min(760px, 60vw);
  padding: 68px clamp(28px, 5vw, 72px) 70px;
}

.profile-identity-line {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 25px;
}

.profile-identity-line img {
  width: 55px;
  height: 55px;
  object-fit: cover;
  border: 1px solid rgba(196, 154, 40, .65);
  border-radius: 50%;
}

.profile-identity-line p,
.profile-identity-line strong,
.profile-identity-line span {
  display: block;
  margin: 0;
}

.profile-identity-line strong {
  color: #d6aa37;
  font: 600 10px/1.4 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.profile-identity-line span {
  margin-top: 5px;
  color: rgba(245, 239, 230, .55);
  font: 500 9px/1.3 var(--mono);
  letter-spacing: .10em;
  text-transform: uppercase;
}

.profile-cover h1 {
  max-width: 760px;
  margin: 0;
  font: 500 clamp(62px, 7.4vw, 105px)/.86 var(--profile-serif);
  letter-spacing: -.045em;
}

.profile-verification {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 27px;
  padding: 9px 13px 9px 10px;
  border: 1px solid rgba(196, 154, 40, .55);
  background: rgba(196, 154, 40, .10);
}

.verification-seal {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #c49a28;
  color: #17120d;
  font: 700 12px/1 var(--sans);
}

.profile-verification strong,
.profile-verification small {
  display: block;
}

.profile-verification strong {
  color: #e0bb59;
  font: 600 9px/1.3 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.profile-verification small {
  margin-top: 3px;
  color: rgba(245, 239, 230, .47);
  font-size: 9px;
}

.profile-cover-lead {
  max-width: 620px;
  margin: 23px 0 0;
  color: rgba(245, 239, 230, .76);
  font-family: Georgia, serif;
  font-size: clamp(17px, 1.55vw, 21px);
  line-height: 1.6;
}

.profile-cover-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 21px;
}

.profile-cover .taxonomy-pill {
  border-color: color-mix(in srgb, var(--pill), white 18%);
}

.profile-cover-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}

.profile-cover-actions button {
  min-height: 47px;
  padding: 0 20px;
  border-radius: 2px;
  font: 600 9px/1 var(--mono);
  letter-spacing: .09em;
  text-transform: uppercase;
}

.profile-primary {
  border: 1px solid #c49a28;
  background: #c49a28;
  color: #17120d;
}

.profile-secondary {
  border: 1px solid rgba(255, 255, 255, .37);
  background: rgba(0, 0, 0, .16);
  color: #fff;
}

.profile-follow {
  border: 1px solid rgba(255, 255, 255, .18);
  background: transparent;
  color: rgba(255, 255, 255, .68);
}

.profile-follow.following {
  border-color: rgba(196, 154, 40, .48);
  background: rgba(196, 154, 40, .13);
  color: #dcb552;
}

.profile-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid rgba(255, 255, 255, .10);
  background: #191511;
  color: #f3ede4;
}

.profile-facts > div {
  min-height: 93px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px clamp(20px, 3vw, 43px);
  border-right: 1px solid rgba(255, 255, 255, .09);
}

.profile-facts > div:last-child {
  border-right: 0;
}

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

.profile-facts span {
  color: #a98220;
  font: 600 8px/1.2 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.profile-facts strong {
  margin-top: 7px;
  color: rgba(243, 237, 228, .77);
  font-size: 12px;
  font-weight: 500;
}

.profile-local-nav {
  position: sticky;
  z-index: 80;
  top: 84px;
  min-height: 53px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3vw, 44px);
  padding: 0 22px;
  overflow-x: auto;
  border-bottom: 1px solid #d8d3ca;
  background: rgba(246, 243, 237, .95);
  backdrop-filter: blur(17px);
}

.profile-local-nav a {
  min-height: 53px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  color: #68625b;
  font: 600 9px/1 var(--mono);
  letter-spacing: .09em;
  text-transform: uppercase;
}

.profile-local-nav a:hover {
  color: #8b6914;
}

.profile-layout {
  width: min(1440px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(32px, 4.5vw, 70px);
  margin: 0 auto;
  padding: 65px clamp(24px, 5vw, 72px) 100px;
}

.profile-content {
  min-width: 0;
}

.profile-section {
  scroll-margin-top: 158px;
  padding: 0 0 74px;
  margin-bottom: 72px;
  border-bottom: 1px solid #d7d1c8;
}

.profile-section:last-child {
  margin-bottom: 0;
}

.profile-kicker {
  margin: 0 0 13px;
  color: #8b6914;
  font: 600 9px/1.4 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
}

.profile-section h2 {
  max-width: 820px;
  margin: 0;
  color: #181511;
  font: 500 clamp(42px, 5vw, 68px)/.94 var(--profile-serif);
  letter-spacing: -.035em;
}

.about-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(26px, 4vw, 54px);
  margin-top: 35px;
}

.about-columns p,
.full-bio p,
.section-intro {
  margin: 0;
  color: #58524b;
  font-size: 15px;
  line-height: 1.75;
}

.text-action {
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid #aaa297;
  background: transparent;
  color: #2c2823;
  font: 600 9px/1 var(--mono);
  letter-spacing: .09em;
  text-transform: uppercase;
}

.profile-about > .text-action {
  margin-top: 27px;
}

.full-bio {
  margin-top: 24px;
  padding: 24px;
  border-left: 3px solid #c49a28;
  background: #fbfaf7;
}

.profile-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 31px;
}

.profile-demo-note {
  max-width: 220px;
  color: #8a837b;
  font: 500 8px/1.5 var(--mono);
  letter-spacing: .07em;
  text-align: right;
  text-transform: uppercase;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  grid-template-rows: repeat(2, 265px);
  gap: 10px;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  min-height: 0;
  background: #17120e;
  color: #fff;
}

.portfolio-tall {
  grid-row: 1 / span 2;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.portfolio-tall img {
  object-position: center 25%;
}

.portfolio-item:hover img {
  transform: scale(1.025);
}

.portfolio-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(4, 3, 2, .82), rgba(4, 3, 2, .06) 60%);
}

.portfolio-caption {
  position: absolute;
  z-index: 1;
  left: 22px;
  right: 22px;
  bottom: 19px;
}

.portfolio-caption span {
  color: #d8ad3c;
  font: 600 8px/1.2 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.portfolio-caption h3 {
  margin: 4px 0 2px;
  font-size: 18px;
  font-weight: 600;
}

.portfolio-caption p {
  margin: 0;
  color: rgba(255, 255, 255, .61);
  font-size: 10px;
}

.project-list {
  border-top: 1px solid #cec7bd;
}

.project-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) auto;
  gap: 23px;
  align-items: start;
  padding: 25px 0;
  border-bottom: 1px solid #d7d1c8;
}

.project-row time {
  color: #9b7920;
  font: 500 24px/1 var(--profile-serif);
}

.project-row > div > span {
  color: #817a72;
  font: 500 8px/1.4 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.project-row h3 {
  margin: 6px 0 4px;
  font-size: 18px;
}

.project-row p {
  margin: 0;
  color: #68615a;
  font-size: 12px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 13px;
}

.project-tags .taxonomy-pill {
  min-height: 27px;
  padding: 0 9px 0 8px;
  font-size: 8px;
}

.project-row > button {
  padding: 7px 0;
  border: 0;
  border-bottom: 1px solid #aaa297;
  background: transparent;
  font: 600 8px/1 var(--mono);
  letter-spacing: .07em;
  text-transform: uppercase;
}

.section-intro {
  max-width: 760px;
  margin-top: 24px;
}

.competence-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.competence-cloud .taxonomy-pill {
  min-height: 36px;
  padding: 0 15px 0 11px;
  font-size: 11px;
}

.career-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 35px;
  border-top: 1px solid #cfc8be;
  border-left: 1px solid #cfc8be;
}

.career-grid article {
  min-height: 165px;
  padding: 25px;
  border-right: 1px solid #cfc8be;
  border-bottom: 1px solid #cfc8be;
  background: rgba(255, 255, 255, .32);
}

.career-grid span {
  color: #8b6914;
  font: 600 8px/1.3 var(--mono);
  letter-spacing: .10em;
  text-transform: uppercase;
}

.career-grid h3 {
  margin: 20px 0 7px;
  font-size: 17px;
}

.career-grid p {
  margin: 0;
  color: #69625b;
  font-size: 12px;
  line-height: 1.55;
}

.profile-sidebar {
  align-self: start;
  position: sticky;
  top: 162px;
  display: grid;
  gap: 13px;
}

.availability-card {
  padding: 25px 22px 12px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0, rgba(196, 154, 40, .18), transparent 31%),
    #201913;
  color: #f5efe6;
  box-shadow: 0 20px 50px rgba(38, 28, 19, .12);
}

.availability-card .profile-kicker {
  color: #d2a639;
}

.availability-card h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.05;
}

.availability-card > p:not(.profile-kicker) {
  margin: 12px 0 21px;
  color: rgba(245, 239, 230, .58);
  font-size: 12px;
  line-height: 1.55;
}

.quick-calendar {
  margin: 0 -8px;
  padding: 14px 8px 13px;
  border-top: 1px solid rgba(255, 255, 255, .09);
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.quick-calendar-head,
.day-availability-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.quick-calendar-head > div:first-child span,
.quick-calendar-head > div:first-child strong {
  display: block;
}

.quick-calendar-head > div:first-child span {
  color: #d2a639;
  font: 600 8px/1 var(--mono);
  letter-spacing: .10em;
  text-transform: uppercase;
}

.quick-calendar-head > div:first-child strong {
  margin-top: 5px;
  color: rgba(255, 255, 255, .82);
  font-size: 11px;
  font-weight: 600;
}

.calendar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.calendar-nav button {
  min-width: 27px;
  height: 27px;
  padding: 0 7px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
  color: rgba(255, 255, 255, .70);
  font: 600 9px/1 var(--mono);
}

.calendar-nav button:hover {
  border-color: rgba(210, 166, 57, .52);
  color: #f4ca5c;
}

.calendar-nav #calendarToday {
  width: auto;
  font-size: 7px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.week-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  margin-top: 14px;
}

.week-day {
  position: relative;
  min-width: 0;
  height: 48px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 10px;
  background: rgba(255, 255, 255, .035);
  color: rgba(255, 255, 255, .46);
}

.week-day span,
.week-day strong {
  display: block;
}

.week-day span {
  font: 600 6px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.week-day strong {
  color: rgba(255, 255, 255, .76);
  font-size: 12px;
  line-height: 1;
}

.week-day::after {
  content: "";
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: transparent;
}

.week-day.available::after {
  background: #70ad83;
  box-shadow: 0 0 0 2px rgba(112, 173, 131, .12);
}

.week-day.today {
  border-color: rgba(210, 166, 57, .58);
}

.week-day.selected {
  border-color: #d2a639;
  background: #d2a639;
  color: #251c0f;
  box-shadow: 0 7px 18px rgba(0, 0, 0, .20);
}

.week-day.selected strong {
  color: #251c0f;
}

.week-day.selected::after {
  background: #251c0f;
  box-shadow: none;
}

.day-availability {
  margin-top: 14px;
}

.day-availability-head strong {
  font-size: 10px;
}

.day-availability-head small {
  color: rgba(255, 255, 255, .40);
  font-size: 8px;
}

.quick-slots {
  display: grid;
  gap: 6px;
  margin-top: 9px;
}

.quick-slot {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 9px;
  background: rgba(255, 255, 255, .045);
  color: #fff;
  text-align: left;
}

.quick-slot strong {
  color: #f0c95e;
  font: 600 10px/1 var(--mono);
}

.quick-slot span {
  overflow: hidden;
  color: rgba(255, 255, 255, .58);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-slot::after {
  content: "→";
  color: rgba(255, 255, 255, .35);
  font-size: 11px;
}

.quick-slot:hover {
  border-color: rgba(210, 166, 57, .45);
  background: rgba(210, 166, 57, .08);
}

.quick-slots-empty {
  margin: 0;
  padding: 10px;
  border: 1px dashed rgba(255, 255, 255, .10);
  border-radius: 9px;
  color: rgba(255, 255, 255, .40);
  font-size: 9px;
  line-height: 1.45;
}

.quick-calendar .calendar-demo-note {
  margin: 11px 0 0;
  color: rgba(255, 255, 255, .31);
  font-size: 8px;
  line-height: 1.45;
}

.availability-card > .booking-types-label {
  margin: 17px 0 7px;
  color: rgba(255, 255, 255, .48);
  font: 600 7px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.availability-options {
  margin: 0 -9px;
}

.availability-options button {
  width: 100%;
  min-height: 61px;
  display: grid;
  grid-template-columns: 35px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, .09);
  background: transparent;
  color: #fff;
  text-align: left;
}

.availability-options button:hover {
  background: rgba(255, 255, 255, .045);
}

.availability-options button > span:last-child {
  color: rgba(255, 255, 255, .35);
}

.booking-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(196, 154, 40, .19);
  color: #dfb84f;
  font: 600 10px/1 var(--mono);
}

.booking-green {
  background: rgba(45, 107, 74, .25);
  color: #8dc5a0;
}

.booking-blue {
  background: rgba(27, 58, 122, .27);
  color: #9eb3dd;
}

.booking-red {
  background: rgba(139, 26, 26, .25);
  color: #da9898;
}

.availability-options strong,
.availability-options small {
  display: block;
}

.availability-options strong {
  font-size: 12px;
}

.availability-options small {
  margin-top: 2px;
  color: rgba(255, 255, 255, .43);
  font-size: 9px;
}

.profile-contact-card,
.profile-network-card,
.profile-specialist-card {
  padding: 21px;
  border: 1px solid #d6d0c7;
  border-radius: 13px;
  background: #fff;
}

.profile-contact-card {
  display: grid;
  grid-template-columns: 8px 1fr;
  gap: 12px;
}

.online-signal {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: #407d51;
}

.profile-contact-card strong {
  font-size: 12px;
}

.profile-contact-card p,
.profile-network-card p,
.profile-specialist-card > p:not(.profile-kicker) {
  margin: 5px 0 0;
  color: #746d65;
  font-size: 11px;
  line-height: 1.5;
}

.profile-contact-card button {
  grid-column: 2;
  width: fit-content;
  padding: 7px 0;
  border: 0;
  border-bottom: 1px solid #aaa297;
  background: transparent;
  font: 600 8px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.profile-network-card h2,
.profile-specialist-card h2 {
  margin: 0;
  font: 500 27px/1 var(--profile-serif);
}

.profile-network-card a,
.profile-specialist-card a {
  display: inline-block;
  margin-top: 17px;
  padding-bottom: 4px;
  border-bottom: 1px solid #aaa297;
  font: 600 8px/1 var(--mono);
  letter-spacing: .07em;
  text-transform: uppercase;
}

.profile-specialist-card {
  border-color: #29392f;
  background:
    radial-gradient(circle at 100% 0, rgba(196, 154, 40, .22), transparent 36%),
    #26342b;
  color: #f5f1e9;
}

.profile-specialist-card .profile-kicker {
  color: #e1b845;
}

.profile-specialist-card > p:not(.profile-kicker) {
  color: rgba(255, 255, 255, .58);
}

.specialist-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 17px;
}

.specialist-shortcuts span {
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .75);
  font-size: 8px;
}

.profile-specialist-card a {
  border-color: rgba(255, 255, 255, .38);
  color: #fff;
}

.profile-footer {
  min-height: 165px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 38px clamp(24px, 5vw, 72px);
  background: #16110d;
  color: #f3ede4;
}

.profile-footer img {
  height: 38px;
  width: auto;
}

.profile-footer p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, .39);
  font: 500 8px/1.5 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.profile-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.profile-footer a {
  color: rgba(255, 255, 255, .58);
  font: 500 9px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.profile-dialog {
  width: min(610px, calc(100vw - 28px));
  max-height: calc(100svh - 28px);
  padding: 0;
  border: 0;
  background: transparent;
}

.profile-dialog::backdrop,
.project-dialog::backdrop {
  background: rgba(12, 9, 7, .63);
  backdrop-filter: blur(7px);
}

.profile-dialog-sheet {
  padding: 27px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 35px 90px rgba(0, 0, 0, .30);
}

.profile-dialog-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 23px;
}

.profile-dialog-head h2 {
  margin: 0;
  font: 500 35px/.95 var(--profile-serif);
}

.profile-dialog-head > button,
.project-dialog article > button {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  flex: 0 0 35px;
  padding: 0 0 3px;
  border: 1px solid #d7d1c8;
  border-radius: 50%;
  background: #fff;
  color: #625c55;
  font-size: 22px;
}

.profile-dialog-sheet > label {
  display: grid;
  gap: 7px;
  margin-top: 15px;
}

.profile-dialog-sheet > label > span:first-child,
.profile-dialog-sheet legend {
  color: #847d75;
  font: 500 8px/1 var(--mono);
  letter-spacing: .10em;
  text-transform: uppercase;
}

.profile-dialog-sheet input,
.profile-dialog-sheet textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #cfc8be;
  border-radius: 9px;
  outline: 0;
  background: #fff;
  color: #171512;
  font-size: 13px;
}

.profile-dialog-sheet textarea {
  resize: vertical;
  line-height: 1.55;
}

.profile-dialog-sheet input:focus,
.profile-dialog-sheet textarea:focus {
  border-color: #8b6914;
  box-shadow: 0 0 0 3px rgba(196, 154, 40, .11);
}

.profile-attachment {
  min-height: 67px;
  display: flex !important;
  align-items: center;
  grid-template-columns: none !important;
  gap: 12px !important;
  padding: 11px;
  border: 1px dashed #bdb5aa;
  border-radius: 10px;
  background: #faf8f4;
  cursor: pointer;
}

.profile-attachment input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.profile-attachment > span:first-of-type {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  flex: 0 0 37px;
  border: 1px solid #d6d0c7;
  border-radius: 9px;
  background: #fff;
  color: #8b6914;
  font-size: 20px;
}

.profile-attachment strong,
.profile-attachment small {
  display: block;
}

.profile-attachment strong {
  font-size: 11px;
}

.profile-attachment small {
  margin-top: 3px;
  color: #857e75;
  font-size: 9px;
}

.dialog-note,
.booking-cost-note {
  margin: 13px 0 0;
  color: #817a72;
  font-size: 9px;
  line-height: 1.55;
}

.booking-cost-note {
  color: #74580e;
}

.profile-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 21px;
}

.profile-dialog-actions button {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  font: 600 8px/1 var(--mono);
  letter-spacing: .07em;
  text-transform: uppercase;
}

.dialog-secondary {
  border: 1px solid #cfc8be;
  background: transparent;
}

.dialog-primary {
  border: 1px solid #171512;
  background: #171512;
  color: #fff;
}

.selected-booking-type {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px;
  border-radius: 10px;
  background: #f1eee8;
}

.selected-booking-type > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #211a14;
  color: #dcb14a;
  font: 600 11px/1 var(--mono);
}

.selected-booking-type small,
.selected-booking-type strong {
  display: block;
}

.selected-booking-type small {
  color: #817a72;
  font: 500 8px/1.2 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.selected-booking-type strong {
  margin-top: 4px;
  font-size: 12px;
}

.selected-booking-type em {
  display: block;
  margin-top: 5px;
  color: #765b13;
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
}

.booking-dialog fieldset {
  display: grid;
  gap: 7px;
  margin: 17px 0 0;
  padding: 0;
  border: 0;
}

.booking-dialog legend {
  margin-bottom: 8px;
}

.booking-dialog fieldset label {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid #d8d2c9;
  border-radius: 9px;
  font-size: 12px;
}

.booking-dialog fieldset input {
  width: auto;
}

.project-dialog {
  width: min(500px, calc(100vw - 28px));
  padding: 0;
  border: 0;
  background: transparent;
}

.project-dialog article {
  position: relative;
  padding: 31px;
  border-radius: 17px;
  background: #fff;
}

.project-dialog article > button {
  position: absolute;
  top: 18px;
  right: 18px;
}

.project-dialog h2 {
  max-width: 380px;
  margin: 0;
  font: 500 38px/.95 var(--profile-serif);
}

.project-dialog article > p:not(.profile-kicker) {
  margin: 18px 0;
  color: #645d56;
  font-size: 13px;
  line-height: 1.65;
}

.project-dialog article > span {
  color: #8b6914;
  font: 600 8px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .profile-cover-content {
    width: min(730px, 72vw);
  }

  .profile-layout {
    grid-template-columns: 1fr;
  }

  .profile-sidebar {
    position: static;
    grid-row: 1;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, .92fr);
    grid-template-rows: max-content max-content 1fr;
    align-items: start;
  }

  .availability-card {
    grid-row: 1 / span 3;
  }

  .profile-contact-card {
    grid-column: 2;
    grid-row: 1;
  }

  .profile-network-card {
    position: relative;
    grid-column: 2;
    grid-row: 2;
    min-height: 230px;
    overflow: hidden;
    background:
      radial-gradient(circle at 100% 100%, rgba(196, 154, 40, .10), transparent 42%),
      #fff;
  }

  .profile-network-card::after {
    content: "R";
    position: absolute;
    right: -18px;
    bottom: -60px;
    color: #241b14;
    font: 500 190px/1 var(--profile-serif);
    opacity: .035;
    pointer-events: none;
  }

  .profile-network-card > * {
    position: relative;
    z-index: 1;
  }

  .profile-specialist-card {
    grid-column: 2;
    grid-row: 3;
    min-height: 225px;
  }
}

@media (max-width: 720px) {
  .profile-cover {
    min-height: calc(100svh - 68px);
    background-position: 57% center;
  }

  .profile-cover-shade {
    background:
      linear-gradient(0deg, rgba(6, 4, 3, .95) 0%, rgba(6, 4, 3, .79) 42%, rgba(6, 4, 3, .18) 86%),
      linear-gradient(90deg, rgba(6, 4, 3, .55), rgba(6, 4, 3, .04));
  }

  .profile-cover-content {
    width: 100%;
    padding: 80px 19px 34px;
  }

  .profile-identity-line {
    margin-bottom: 19px;
  }

  .profile-identity-line img {
    width: 46px;
    height: 46px;
  }

  .profile-cover h1 {
    font-size: 57px;
  }

  .profile-verification {
    margin-top: 19px;
  }

  .profile-cover-lead {
    font-size: 15px;
    line-height: 1.5;
  }

  .profile-cover-tags {
    gap: 6px;
  }

  .profile-cover-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .profile-cover-actions button {
    padding: 0 10px;
  }

  .profile-follow {
    grid-column: 1 / -1;
  }

  .profile-facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .profile-facts > div {
    min-height: 82px;
    padding: 15px 18px;
  }

  .profile-facts > div:nth-child(2) {
    border-right: 0;
  }

  .profile-facts > div:nth-child(-n+2) {
    border-bottom: 1px solid rgba(255, 255, 255, .09);
  }

  .profile-local-nav {
    top: 68px;
    justify-content: flex-start;
  }

  .profile-layout {
    gap: 42px;
    padding: 45px 15px 70px;
  }

  .profile-sidebar {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .availability-card,
  .profile-contact-card,
  .profile-network-card,
  .profile-specialist-card {
    grid-column: auto;
    grid-row: auto;
  }

  .profile-network-card,
  .profile-specialist-card {
    min-height: 0;
  }

  .profile-section {
    scroll-margin-top: 135px;
    padding-bottom: 53px;
    margin-bottom: 52px;
  }

  .profile-section h2 {
    font-size: 43px;
  }

  .about-columns,
  .career-grid {
    grid-template-columns: 1fr;
  }

  .profile-section-head {
    display: block;
  }

  .profile-section-head .text-action,
  .profile-demo-note {
    display: inline-block;
    margin-top: 17px;
    text-align: left;
  }

  .portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 390px 230px 230px;
  }

  .portfolio-tall {
    grid-row: auto;
  }

  .project-row {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 14px;
  }

  .project-row > button {
    grid-column: 2;
    justify-self: start;
  }

  .career-grid {
    border-top: 1px solid #cfc8be;
  }

  .profile-footer {
    display: block;
  }

  .profile-footer nav {
    margin-top: 28px;
  }

  .profile-dialog-sheet {
    padding: 20px;
  }

  .profile-dialog-actions button {
    flex: 1;
    padding: 0 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-item img {
    transition: none;
  }
}
