:root {
  --black: #292a27;
  --chalk: #e9e5dd;
  --paper: #f5f1e9;
  --acid: #b7bea7;
  --purple: #85746d;
  --purple-dark: #5e514c;
  --grey: #aaa69e;
  --photo-base: #ead6aa;
  --photo-accent: #f0b875;
  --display: "Archivo Black", Impact, sans-serif;
  --body: "Inter", Arial, sans-serif;
  --mono: "IBM Plex Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--black);
  background: var(--acid);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 4px solid var(--purple);
  outline-offset: 4px;
}

.intro {
  display: grid;
  min-height: 100svh;
  padding: clamp(12px, 2.4vw, 34px);
  place-items: center;
}

.namecard {
  display: grid;
  width: min(1380px, 100%);
  min-height: min(760px, calc(100svh - 68px));
  margin: 0;
  overflow: hidden;
  grid-template:
    "label label" 42px
    "photo content" 1fr
    / minmax(260px, 0.58fr) minmax(520px, 1.42fr);
  background: var(--paper);
  border: 3px solid var(--black);
}

.namecard-label {
  display: flex;
  grid-area: label;
  align-items: center;
  justify-content: space-between;
  padding: 0 17px;
  color: var(--acid);
  background: var(--black);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portrait {
  position: relative;
  display: grid;
  grid-area: photo;
  grid-template-rows: 54px minmax(0, 1fr);
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: var(--paper);
  border-right: 3px solid var(--black);
}

.photo-frame {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: var(--photo-base);
}

.portrait img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
  object-position: center;
  filter: grayscale(55%) sepia(10%) contrast(0.98) brightness(1.12);
  mix-blend-mode: multiply;
}

.portrait-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--purple-dark);
  font-family: var(--display);
  font-size: clamp(80px, 14vw, 190px);
}

.portrait.image-missing img {
  display: none;
}

.photo-frame::after {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  width: 23%;
  height: 44%;
  background: var(--photo-accent);
  content: "";
  mix-blend-mode: soft-light;
}

.portrait figcaption {
  position: absolute;
  z-index: 3;
  right: 15px;
  bottom: 13px;
  left: 15px;
  padding: 6px 8px;
  color: var(--paper);
  background: var(--black);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card-content {
  display: grid;
  grid-area: content;
  grid-template-rows: auto 1fr auto auto;
  min-width: 0;
  background-color: var(--paper);
  background-image: linear-gradient(
    to right,
    transparent calc(100% - 1px),
    rgba(23, 23, 23, 0.08) calc(100% - 1px)
  );
  background-size: 10% 100%;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 18px clamp(22px, 3.4vw, 50px);
  border-bottom: 2px solid var(--black);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-header p {
  margin: 0;
}

.card-header > p span {
  color: var(--purple);
}

.poster-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.poster-tools-photo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 54px;
  gap: 0;
  background: var(--paper);
  border-bottom: 2px solid var(--black);
}

.header-icon {
  display: flex;
  width: 100%;
  height: 100%;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--black);
  background: var(--paper);
  border: 0;
  cursor: pointer;
  font: 600 10px var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.header-icon + .header-icon {
  border-left: 2px solid var(--black);
}

.header-icon span:first-child {
  font-size: 16px;
}

.header-icon[aria-busy="true"] {
  cursor: wait;
  opacity: 0.55;
}

.card-statement {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(35px, 5vh, 70px) clamp(24px, 5vw, 76px);
}

.intro-line {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: clamp(13px, 1.2vw, 17px);
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.88;
}

h1 {
  font-size: clamp(72px, 10.5vw, 150px);
  text-transform: uppercase;
}

.slogan {
  max-width: 570px;
  margin: clamp(22px, 4vh, 45px) 0 0;
  font-size: clamp(17px, 1.65vw, 23px);
  font-weight: 600;
  line-height: 1.4;
}

.card-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 2px solid var(--black);
}

.card-facts > div {
  min-width: 0;
  padding: 17px clamp(18px, 3vw, 42px);
}

.card-facts > div + div {
  border-left: 2px solid var(--black);
}

.fact-label {
  display: block;
  margin-bottom: 5px;
  color: #58554e;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.card-facts strong {
  font-size: clamp(14px, 1.3vw, 18px);
}

.contact-line {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.contact-line > strong {
  min-width: 0;
  white-space: nowrap;
}

.contact-tools {
  display: flex;
  flex: 0 0 auto;
  gap: 12px;
}

.icon-action {
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  color: var(--black);
  background: transparent;
  border: 1px solid #77746d;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
}

.copy-glyph {
  position: relative;
  display: block;
  width: 15px;
  height: 15px;
}

.copy-glyph::before,
.copy-glyph::after {
  position: absolute;
  width: 8px;
  height: 10px;
  border: 1.5px solid currentColor;
  content: "";
}

.copy-glyph::before {
  top: 1px;
  left: 1px;
}

.copy-glyph::after {
  right: 1px;
  bottom: 1px;
  background: var(--paper);
}

.phone-glyph {
  font-family: Arial, sans-serif;
  font-size: 17px;
  line-height: 1;
}

.reveal-button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 15px clamp(20px, 3.2vw, 46px);
  color: var(--paper);
  background: var(--purple);
  border: 0;
  border-top: 3px solid var(--black);
  cursor: pointer;
  font: 700 clamp(15px, 1.45vw, 19px) var(--body);
  text-align: left;
  transition: color 180ms ease, background-color 180ms ease;
}

.reveal-button:hover {
  color: var(--paper);
  background: var(--purple-dark);
}

.reveal-button[aria-expanded="true"]:hover {
  color: var(--acid);
  background: var(--black);
}

.reveal-button b {
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  border: 2px solid currentColor;
  font-family: var(--mono);
}

.swipe-note {
  display: none;
}

.full-profile {
  color: var(--chalk);
  background: var(--black);
  border-top: 3px solid var(--black);
}

.profile-lead {
  display: grid;
  grid-template-columns: 0.42fr 1.58fr;
  padding: clamp(75px, 10vw, 150px) clamp(24px, 7vw, 110px);
}

.section-code {
  margin: 0;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}

.profile-lead h2 {
  max-width: 1000px;
  font-size: clamp(54px, 8.2vw, 126px);
  text-transform: uppercase;
}

.profile-lead h2 span {
  color: var(--purple);
}

.lead-copy {
  grid-column: 2;
  max-width: 680px;
  margin: 55px 0 0;
  color: var(--grey);
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.55;
}

.profile-data {
  padding: 0 clamp(24px, 7vw, 110px) clamp(75px, 10vw, 150px);
}

.profile-data dl {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  border-top: 1px solid #555;
  border-bottom: 1px solid #555;
}

.profile-data dl > div {
  padding: 25px 20px 28px 0;
}

.profile-data dl > div + div {
  padding-left: 20px;
  border-left: 1px solid #555;
}

.profile-data dt {
  margin-bottom: 8px;
  color: #888;
  font: 10px var(--mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.profile-data dd {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.services {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  color: var(--black);
  background: var(--chalk);
  border-top: 3px solid var(--black);
  border-bottom: 3px solid var(--black);
}

.services-heading {
  padding: clamp(60px, 8vw, 110px) clamp(24px, 7vw, 105px);
  background: var(--acid);
  border-right: 3px solid var(--black);
}

.services-heading .section-code {
  color: var(--black);
}

.services h3 {
  margin-top: 40px;
  font-size: clamp(43px, 5.5vw, 80px);
  text-transform: uppercase;
}

.services ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.services li {
  display: grid;
  grid-template-columns: 55px minmax(190px, 0.8fr) 1fr;
  gap: 22px;
  align-items: center;
  min-height: 94px;
  padding: 18px clamp(25px, 4vw, 62px);
  border-bottom: 2px solid var(--black);
}

.services li:last-child {
  border-bottom: 0;
}

.services li span {
  font: 11px var(--mono);
}

.services li strong {
  font-size: clamp(16px, 1.6vw, 21px);
}

.services li small {
  color: #5e5b55;
  font-size: 13px;
  line-height: 1.45;
}

.work-format {
  padding: clamp(75px, 9vw, 130px) clamp(24px, 7vw, 110px);
}

.format-line {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  align-items: center;
  margin-top: 45px;
}

.format-line span {
  font-family: var(--display);
  font-size: clamp(32px, 5vw, 74px);
  letter-spacing: -0.05em;
  line-height: 1;
  text-transform: uppercase;
}

.format-line i {
  color: var(--acid);
  font: normal clamp(30px, 4vw, 60px) var(--mono);
}

.work-format > p:last-child {
  max-width: 660px;
  margin: 45px 0 0 auto;
  color: var(--grey);
  font-size: 18px;
  line-height: 1.6;
}

.contact-panel {
  padding: clamp(65px, 8vw, 105px) clamp(24px, 7vw, 110px);
  color: var(--black);
  background: var(--purple);
  border-top: 3px solid var(--black);
}

.contact-panel .section-code {
  color: var(--paper);
}

.contact-panel > div {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 70px;
  align-items: end;
  margin-top: 50px;
}

.contact-panel h3 {
  color: var(--paper);
  font-size: clamp(56px, 8.4vw, 126px);
  text-transform: uppercase;
}

.contact-action p {
  max-width: 510px;
  margin: 0 0 28px;
  color: #e3ddff;
  font-size: 17px;
  line-height: 1.6;
}

.contact-action a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  color: var(--black);
  background: var(--acid);
  border: 2px solid var(--black);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.contact-action a:hover {
  color: var(--paper);
  background: var(--black);
}

.close-profile {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 25px;
  color: var(--chalk);
  background: var(--black);
  border: 0;
  border-top: 1px solid #555;
  cursor: pointer;
  font: 600 12px var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.close-profile:hover {
  color: var(--acid);
}

.page-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(20px, 3vw, 45px);
  color: var(--black);
  background: var(--acid);
  border-top: 3px solid var(--black);
  font: 11px var(--mono);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.page-footer p {
  margin: 0;
}

.page-footer a {
  color: var(--black);
  font-weight: 600;
  text-underline-offset: 4px;
}

.toast {
  position: fixed;
  z-index: 20;
  right: 18px;
  bottom: 18px;
  max-width: calc(100% - 36px);
  padding: 13px 16px;
  color: var(--paper);
  background: var(--black);
  border: 2px solid var(--acid);
  font: 12px var(--mono);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .intro {
    display: grid;
    min-height: 100svh;
    padding: 16px;
  }

  .namecard {
    width: 100%;
    min-width: 0;
    min-height: min(650px, calc(100svh - 32px));
    grid-template-columns: minmax(210px, 0.6fr) minmax(0, 1.4fr);
  }

  .swipe-note {
    display: none;
  }

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

  .profile-lead h2 {
    margin-top: 40px;
  }

  .lead-copy {
    grid-column: 1;
  }

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

  .profile-data dl > div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid #555;
  }

  .profile-data dl > div:nth-child(4) {
    border-top: 1px solid #555;
  }

  .services {
    grid-template-columns: 1fr;
  }

  .services-heading {
    border-right: 0;
    border-bottom: 3px solid var(--black);
  }

  .contact-panel > div {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

@media (max-width: 760px) {
  .card-facts {
    grid-template-columns: 1fr;
  }

  .card-facts > div + div {
    border-top: 2px solid var(--black);
    border-left: 0;
  }
}

@media (max-width: 620px) {
  .intro {
    padding: 0;
    overflow: visible;
  }

  .namecard {
    width: 100%;
    min-width: 0;
    min-height: 100svh;
    grid-template:
      "label" 38px
      "photo" minmax(210px, 29svh)
      "content" auto
      / 1fr;
    border: 0;
  }

  .portrait {
    border-right: 0;
    border-bottom: 3px solid var(--black);
  }

  .portrait img {
    min-height: 210px;
    object-position: center 30%;
  }

  .photo-frame::after {
    width: 32%;
    height: 38%;
  }

  .card-content {
    grid-template-rows: auto auto auto auto;
  }

  .card-header {
    padding: 13px 18px;
  }

  .card-role {
    display: none;
  }

  .card-statement {
    padding: 34px 20px 38px;
  }

  h1 {
    font-size: clamp(58px, 18vw, 76px);
  }

  .slogan {
    max-width: 460px;
    margin-top: 25px;
    font-size: 17px;
  }

  .card-facts {
    grid-template-columns: 1fr;
  }

  .card-facts > div {
    padding: 14px 20px;
  }

  .card-facts > div + div {
    border-top: 2px solid var(--black);
    border-left: 0;
  }

  .reveal-button {
    min-height: 66px;
    padding: 13px 18px 13px 20px;
  }

  .swipe-note {
    display: none;
  }

  .profile-lead,
  .profile-data,
  .work-format,
  .contact-panel {
    padding-right: 20px;
    padding-left: 20px;
  }

  .profile-lead h2 {
    font-size: clamp(48px, 15vw, 72px);
  }

  .lead-copy {
    margin-top: 35px;
    font-size: 17px;
  }

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

  .profile-data dl > div,
  .profile-data dl > div + div,
  .profile-data dl > div:nth-child(3) {
    padding: 18px 0;
    border-top: 1px solid #555;
    border-left: 0;
  }

  .profile-data dl > div:first-child {
    border-top: 0;
  }

  .services-heading {
    padding: 60px 20px;
  }

  .services h3 {
    font-size: clamp(43px, 14vw, 64px);
  }

  .services li {
    grid-template-columns: 32px 1fr;
    gap: 9px 12px;
    padding: 18px 20px;
  }

  .services li small {
    grid-column: 2;
  }

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

  .format-line span {
    font-size: clamp(35px, 10.8vw, 52px);
  }

  .format-line i {
    font-size: 30px;
  }

  .contact-panel h3 {
    font-size: clamp(49px, 15vw, 72px);
  }

  .contact-action a {
    font-size: 13px;
  }

  .page-footer {
    display: block;
    padding: 18px 20px;
    line-height: 1.7;
  }

  .page-footer a {
    display: inline-block;
    margin-top: 8px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
