:root {
  --azul: #1e3a5f;
  --azul-profundo: #122338;
  --dourado: #c6a46a;
  --dourado-fosco: #9f7b45;
  --branco-quente: #f6f3ee;
  --cinza: #70757d;
  --grafite: #1a1a1a;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "General Sans", Arial, sans-serif;
  --ui: Inter, Arial, sans-serif;
  --card-width: 34rem;
}

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

html {
  min-width: 320px;
  background: var(--azul-profundo);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--grafite);
  background: var(--azul-profundo);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

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

button {
  font: inherit;
}

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

img {
  display: block;
  max-width: 100%;
}

::selection {
  color: var(--branco-quente);
  background: var(--azul);
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  color: var(--azul-profundo);
  background: var(--dourado);
  font-family: var(--ui);
  font-weight: 600;
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--dourado);
  outline-offset: 3px;
}

.card-shell {
  width: min(100%, var(--card-width));
  min-height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--branco-quente);
}

.card-hero {
  padding: 1.75rem 2rem 2.55rem;
  color: var(--azul-profundo);
  background: var(--branco-quente);
  text-align: center;
}

.brand-clearspace {
  display: grid;
  padding: 0.25rem 1.25rem 1.25rem;
  place-items: center;
}

.brand-clearspace img {
  width: min(14.5rem, 72vw);
  height: auto;
  object-fit: contain;
}

.professional-photo {
  width: clamp(5.75rem, 25vw, 7rem);
  aspect-ratio: 4 / 5;
  margin: 0 auto 1.35rem;
  overflow: hidden;
}

.professional-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.identity {
  max-width: 100%;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--dourado);
  font-family: var(--sans);
  font-size: 0.69rem;
  font-weight: 500;
  letter-spacing: 0.17em;
  line-height: 1.35;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

#card-name {
  display: flex;
  max-width: none;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 0.12em;
  row-gap: 0;
  margin-bottom: 0.72rem;
  font-family: var(--serif);
  font-size: clamp(2.25rem, 8vw, 2.65rem);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 0.98;
  text-wrap: balance;
}

.name__first,
.name__second {
  white-space: nowrap;
}

.role {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.42rem;
  margin-bottom: 0;
  color: var(--azul);
  font-family: var(--ui);
  font-size: clamp(0.75rem, 3.2vw, 0.8rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

.role__title,
.role__second,
.role__profession {
  white-space: nowrap;
}

.role__second {
  display: inline-flex;
  align-items: baseline;
  gap: 0.42rem;
}

.company-label {
  margin: 0.55rem 0 0;
  color: var(--dourado-fosco);
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  line-height: 1.45;
  text-transform: uppercase;
}

.crea {
  margin: 0.35rem 0 0;
  color: rgba(30, 58, 95, 0.62);
  font-family: var(--ui);
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.45;
  text-transform: uppercase;
}

.professional-description {
  max-width: 27rem;
  margin: 1.45rem auto 0;
  color: #3f454b;
  font-size: 0.98rem;
  font-weight: 300;
  line-height: 1.8;
}

.card-content {
  padding: 2.25rem 2rem 2.5rem;
}

.company-description {
  max-width: 31rem;
  margin-bottom: 1.75rem;
  color: #3f454b;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.78;
}

.primary-actions {
  display: grid;
  gap: 0.75rem;
}

.button,
.share-button {
  display: inline-flex;
  min-height: 3.5rem;
  align-items: center;
  justify-content: center;
  gap: 0.72rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--ui);
  font-size: 0.77rem;
  font-weight: 600;
  letter-spacing: 0.045em;
  line-height: 1.2;
  text-align: center;
  transition:
    background-color 220ms ease,
    border-color 220ms ease,
    color 220ms ease,
    transform 220ms ease;
}

.button--primary {
  color: var(--azul-profundo);
  background: var(--dourado);
}

.button--secondary {
  color: var(--azul);
  background: transparent;
  border-color: rgba(30, 58, 95, 0.42);
}

.button__icon,
.share-button__icon,
.contact-link__icon {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
}

.button__icon svg,
.share-button__icon svg,
.contact-link__icon svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.contact-section {
  margin-top: 2.75rem;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.section-heading h2 {
  flex: 0 0 auto;
  margin: 0;
  color: var(--azul);
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
}

.section-heading span {
  width: 100%;
  height: 1px;
  background: rgba(30, 58, 95, 0.16);
}

.contact-links {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(30, 58, 95, 0.14);
}

.contact-links li {
  border-bottom: 1px solid rgba(30, 58, 95, 0.14);
}

.contact-link {
  display: grid;
  min-height: 4rem;
  grid-template-columns: 1.3rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0.15rem;
  color: var(--azul);
  transition:
    color 220ms ease,
    transform 220ms ease;
}

.contact-link__info {
  min-width: 0;
}

.contact-link__label,
.contact-link__detail {
  display: block;
}

.contact-link__label {
  font-family: var(--ui);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.35;
}

.contact-link__detail {
  overflow: hidden;
  margin-top: 0.08rem;
  color: var(--cinza);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 300;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-link--website .contact-link__detail {
  overflow: visible;
  font-size: clamp(0.7rem, 3.4vw, 0.78rem);
  letter-spacing: -0.01em;
  overflow-wrap: normal;
  text-overflow: clip;
  white-space: nowrap;
  word-break: keep-all;
}

.contact-link__arrow {
  color: var(--dourado-fosco);
  font-family: var(--ui);
  font-size: 0.95rem;
}

.contact-link.is-disabled {
  color: var(--cinza);
  cursor: not-allowed;
}

.contact-link.is-disabled .contact-link__icon,
.contact-link.is-disabled .contact-link__arrow {
  opacity: 0.5;
}

.contact-link.is-disabled .contact-link__detail {
  color: var(--cinza);
}

.share-button {
  width: 100%;
  margin-top: 1.5rem;
  color: var(--azul);
  background: transparent;
  border-color: rgba(30, 58, 95, 0.28);
}

.status-message {
  min-height: 1.35rem;
  margin: 0.55rem 0 0;
  color: var(--azul);
  font-family: var(--ui);
  font-size: 0.74rem;
  font-weight: 500;
  text-align: center;
}

.qr-section {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.45rem;
  padding: 1.5rem;
  background: #eeeae1;
  border: 1px solid rgba(30, 58, 95, 0.12);
}

.qr-section h2 {
  max-width: 15ch;
  margin-bottom: 0.55rem;
  color: var(--azul);
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.qr-section__copy > p:not(.eyebrow) {
  max-width: 28rem;
  margin-bottom: 0.8rem;
  color: #4f555b;
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.7;
}

.card-url {
  display: inline-block;
  overflow-wrap: anywhere;
  color: var(--azul);
  font-family: var(--ui);
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1.55;
  text-decoration: underline;
  text-decoration-color: rgba(30, 58, 95, 0.35);
  text-underline-offset: 0.2em;
}

.qr-code {
  display: grid;
  width: 11rem;
  min-height: 11rem;
  align-self: start;
  justify-self: start;
  place-items: center;
  padding: 0.45rem;
  background: var(--branco-quente);
  border: 1px solid rgba(30, 58, 95, 0.14);
}

.qr-code img {
  width: 10rem;
  height: 10rem;
  image-rendering: crisp-edges;
}

.qr-fallback {
  color: var(--azul);
  font-family: var(--ui);
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: underline;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 2rem;
  color: rgba(246, 243, 238, 0.56);
  background: var(--azul-profundo);
  font-family: var(--ui);
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  line-height: 1.45;
  text-transform: uppercase;
}

.card-footer p {
  margin: 0;
}

.noscript-message {
  position: fixed;
  z-index: 30;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  max-width: var(--card-width);
  margin: 0 auto;
  padding: 1rem;
  color: var(--branco-quente);
  background: var(--azul);
  border: 1px solid var(--dourado);
  font-family: var(--ui);
  font-size: 0.85rem;
  text-align: center;
}

@media (hover: hover) and (pointer: fine) {
  .button:hover,
  .share-button:hover {
    transform: translateY(-2px);
  }

  .button--primary:hover {
    background: var(--dourado-fosco);
  }

  .button--secondary:hover,
  .share-button:hover {
    color: var(--branco-quente);
    background: var(--azul);
    border-color: var(--azul);
  }

  .contact-link:not(.is-disabled):hover {
    color: var(--dourado-fosco);
    transform: translateX(0.2rem);
  }
}

@media (min-width: 38rem) {
  .qr-section {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .qr-code {
    justify-self: end;
  }
}

@media (min-width: 46rem) {
  body {
    padding: 2rem;
  }

  .card-shell {
    min-height: calc(100dvh - 4rem);
    box-shadow: 0 1.5rem 4.5rem rgba(0, 0, 0, 0.2);
  }

  .card-hero,
  .card-content {
    padding-right: 2.75rem;
    padding-left: 2.75rem;
  }

  .card-footer {
    padding-right: 2.75rem;
    padding-left: 2.75rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(0.55rem);
  }

  .is-ready [data-reveal] {
    animation: card-reveal 460ms ease both;
  }

  .is-ready [data-reveal="2"] {
    animation-delay: 70ms;
  }

  .is-ready [data-reveal="3"] {
    animation-delay: 130ms;
  }

  .is-ready [data-reveal="4"] {
    animation-delay: 170ms;
  }

  .is-ready [data-reveal="5"] {
    animation-delay: 210ms;
  }

  .is-ready [data-reveal="6"] {
    animation-delay: 250ms;
  }

  .is-ready [data-reveal="7"] {
    animation-delay: 290ms;
  }

  .is-ready [data-reveal="8"] {
    animation-delay: 330ms;
  }

  .is-ready [data-reveal="9"] {
    animation-delay: 370ms;
  }

  @keyframes card-reveal {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@media (max-width: 22rem) {
  .role {
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
  }

  .role__second {
    gap: 0;
  }

  .role__separator {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
