*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --white: #ffffff;
  --cyan: #00b4e6;
  --navy: #1a3a5c;
  --navy-deep: #0f2840;
  --text-on-blue: #ffffff;
  --text-muted-on-blue: rgba(255, 255, 255, 0.85);
  --text-faint-on-blue: rgba(255, 255, 255, 0.6);
  --text-on-white: #1a3a5c;
  --text-muted-on-white: #5a6573;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --pad: clamp(1rem, 4vw, 2rem);
}

html {
  height: 100%;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100%;
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--text-on-blue);
  background: var(--cyan);
  line-height: 1.6;
}

.page {
  width: 100%;
  min-height: 100dvh;
  min-height: 100svh;
  max-width: 40rem;
  margin-inline: auto;
  padding:
    calc(var(--pad) + env(safe-area-inset-top, 0px))
    calc(var(--pad) + env(safe-area-inset-right, 0px))
    calc(var(--pad) + env(safe-area-inset-bottom, 0px))
    calc(var(--pad) + env(safe-area-inset-left, 0px));
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.header {
  text-align: center;
  padding-bottom: 1rem;
}

.wordmark {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint-on-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

.wordmark:hover {
  color: var(--text-on-blue);
}

.main {
  display: grid;
  place-items: center;
  width: 100%;
}

.card {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: enter 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.profile {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.photo {
  width: 4.5rem;
  height: auto;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}

.profile-text {
  min-width: 0;
  flex: 1;
}

.label {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted-on-white);
  margin-bottom: 0.25rem;
}

.profile .title {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-on-white);
  margin-bottom: 0.25rem;
}

.profile .role {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted-on-white);
  line-height: 1.4;
}

.details {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.details p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-muted-on-blue);
}

.details strong {
  color: var(--text-on-blue);
  font-weight: 600;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  width: 100%;
  padding: 0.875rem 1.25rem;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--white);
  background: var(--navy);
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 10px rgba(15, 40, 64, 0.3);
}

.cta:hover {
  background: var(--navy-deep);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(15, 40, 64, 0.35);
}

.cta:active {
  transform: translateY(0);
}

.cta-icon {
  flex-shrink: 0;
}

.footer {
  text-align: center;
  padding-top: 1.5rem;
}

.footer p {
  font-size: 0.6875rem;
  color: var(--text-faint-on-blue);
  letter-spacing: 0.02em;
}

.card-footer {
  display: none;
}

/* ── Phone: iOS & Android (≤639px) ── */
@media (max-width: 639px) {
  .page {
    max-width: none;
    padding:
      calc(0.75rem + env(safe-area-inset-top, 0px))
      calc(1rem + env(safe-area-inset-right, 0px))
      calc(0.75rem + env(safe-area-inset-bottom, 0px))
      calc(1rem + env(safe-area-inset-left, 0px));
    grid-template-rows: 1fr;
    place-items: center;
  }

  .header,
  .footer {
    display: none;
  }

  .main {
    height: 100%;
  }

  .card {
    background: var(--white);
    border-radius: 20px;
    padding: 1.5rem 1.25rem;
    gap: 1.25rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  }

  .card::before {
    content: "dcgrouphq.com";
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted-on-white);
    text-align: center;
    padding-bottom: 0.25rem;
  }

  .profile {
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-bottom: 1px solid rgba(26, 58, 92, 0.1);
    padding-bottom: 1.25rem;
  }

  .photo {
    width: 3.75rem;
  }

  .profile .title {
    font-size: 1.2rem;
  }

  .profile .role {
    font-size: 0.75rem;
  }

  .details p {
    font-size: 0.875rem;
    color: var(--text-muted-on-white);
  }

  .details strong {
    color: var(--text-on-white);
  }

  .card-footer {
    display: block;
    font-size: 0.625rem;
    color: var(--text-muted-on-white);
    text-align: center;
    padding-top: 0.25rem;
    opacity: 0.7;
  }
}

/* ── Tablet (640px–1023px) ── */
@media (min-width: 640px) and (max-width: 1023px) {
  .page {
    max-width: 34rem;
  }

  .photo {
    width: 5rem;
  }

  .profile .title {
    font-size: 1.625rem;
  }

  .cta {
    width: auto;
    align-self: flex-start;
  }
}

/* ── Desktop (≥1024px) ── */
@media (min-width: 1024px) {
  .page {
    max-width: 38rem;
  }

  .header {
    text-align: left;
  }

  .photo {
    width: 5.5rem;
  }

  .profile .title {
    font-size: 1.75rem;
  }

  .profile .role {
    font-size: 0.875rem;
  }

  .cta {
    width: auto;
    align-self: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card {
    animation: none;
  }

  .cta:hover {
    transform: none;
  }
}
