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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 0;
  margin: 0;
  background: #fff;
}

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

button {
  font: inherit;
}

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

.george-page {
  --george-ink: #1b2943;
  --george-teal: #3d9795;
  --george-coral: #eb6c5d;
  --george-sage: #9bb9a9;
  --george-blue: #5a88c4;
  --george-muted: #536078;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  justify-content: center;
  padding: clamp(16px, 3vw, 42px);
  color: var(--george-ink);
  background:
    radial-gradient(circle at 12% 10%, rgba(226, 243, 238, .85), transparent 26%),
    radial-gradient(circle at 92% 80%, rgba(250, 228, 218, .78), transparent 25%),
    #eef5f3;
  font-family: "Avenir Next", "Nunito Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.george-card-shell {
  position: relative;
  isolation: isolate;
  width: min(100%, 670px);
  overflow: hidden;
  border: 1px solid rgba(26, 64, 73, .1);
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 26px 80px rgba(34, 78, 79, .14);
}

.george-card-shell::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -180px;
  left: -20%;
  width: 140%;
  height: 330px;
  border-radius: 50%;
  background: linear-gradient(120deg, rgba(222, 243, 238, .85), rgba(246, 251, 249, .12));
  transform: rotate(-4deg);
}

.george-content {
  position: relative;
  z-index: 1;
  padding: 38px 30px 164px;
}

.george-identity {
  text-align: center;
}

.george-logo-link {
  display: block;
  width: min(308px, 82%);
  margin: 0 auto;
}

.george-logo-link img {
  width: 100%;
  height: auto;
}

.george-tagline {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin: 12px 0 31px;
  color: #347878;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .17em;
  line-height: 1.35;
  text-transform: uppercase;
}

.george-tagline span + span::before {
  content: "•";
  margin-right: 7px;
  color: var(--george-coral);
}

.george-profile-frame {
  width: 158px;
  height: 158px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.george-profile {
  width: 100%;
  height: 100%;
  max-width: none;
  border-radius: 0;
  object-fit: contain;
  object-position: 50% 50%;
  transform: none;
}

.george-identity h1 {
  margin: 20px 0 3px;
  color: var(--george-ink);
  font-size: clamp(31px, 5vw, 42px);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1.05;
}

.george-role {
  margin: 0;
  color: #317979;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.george-divider {
  display: block;
  width: 52px;
  height: 2px;
  margin: 20px auto 15px;
  background: var(--george-coral);
}

.george-description {
  margin: 0 auto;
  color: var(--george-ink);
  font-size: 17px;
  font-weight: 550;
  line-height: 1.45;
}

.george-actions {
  display: grid;
  gap: 10px;
  width: min(100%, 518px);
  margin: 29px auto 0;
}

.george-action {
  min-height: 76px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 22px;
  gap: 15px;
  align-items: center;
  padding: 10px 17px 10px 12px;
  border: 1px solid #edf0ef;
  border-radius: 18px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 7px 18px rgba(24, 43, 64, .1);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.george-action:hover,
.george-action:focus-visible {
  border-color: rgba(61, 151, 149, .35);
  box-shadow: 0 11px 24px rgba(24, 43, 64, .14);
  transform: translateY(-2px);
}

.george-action:focus-visible,
.george-save:focus-visible {
  outline: 3px solid rgba(90, 136, 196, .38);
  outline-offset: 3px;
}

.george-action-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
}

.george-action-icon svg {
  width: 27px;
  height: 27px;
  stroke-width: 2.25;
}

.george-action-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.george-action-copy strong,
.george-action-copy small {
  overflow: hidden;
  color: var(--george-ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.george-action-copy strong {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}

.george-action-copy small {
  font-size: 15px;
  line-height: 1.3;
}

.george-action-arrow {
  width: 20px;
  color: var(--george-ink);
  stroke-width: 1.8;
}

.george-save-section {
  width: min(100%, 518px);
  margin: 23px auto 0;
}

.george-save {
  width: 100%;
  min-height: 78px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 20px;
  gap: 15px;
  align-items: center;
  padding: 11px 16px 11px 12px;
  color: #fff;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #3e9996, #318481);
  box-shadow: 0 10px 22px rgba(47, 126, 123, .25);
  text-align: left;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.george-save:hover {
  box-shadow: 0 13px 27px rgba(47, 126, 123, .3);
  transform: translateY(-2px);
}

.george-save-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: var(--george-teal);
  border-radius: 13px;
  background: #fff;
}

.george-save-icon svg {
  width: 30px;
  height: 30px;
}

.george-save-copy {
  display: grid;
  gap: 3px;
}

.george-save-copy strong {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
}

.george-save-copy small {
  color: rgba(255, 255, 255, .86);
  font-size: 12px;
  line-height: 1.3;
}

.george-save-mark {
  justify-self: end;
  font-size: 26px;
  font-weight: 300;
  line-height: 1;
}

.george-save-status {
  min-height: 17px;
  margin: 8px 8px 0;
  color: #397b75;
  font-size: 11px;
  text-align: center;
}

.george-qr-section {
  width: min(100%, 518px);
  margin: 18px auto 0;
  text-align: center;
}

.george-qr-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #347878;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1.25;
  text-transform: uppercase;
}

.george-qr-heading span {
  flex: 1;
  height: 1px;
  background: #83b8b1;
}

.george-qr-heading strong {
  white-space: nowrap;
}

.george-qr-content {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 31px;
  margin: 18px auto 15px;
}

.george-qr-frame {
  position: relative;
  width: 172px;
  height: 172px;
  display: grid;
  place-items: center;
  padding: 9px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(27, 41, 67, .13);
}

.george-qr-frame img {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

.george-qr-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(27, 41, 67, .15);
  transform: translate(-50%, -50%);
}

.george-qr-frame .george-qr-mark img {
  width: auto;
  height: 100%;
  max-width: none;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  image-rendering: auto;
}

.george-scan-note {
  position: absolute;
  top: 50%;
  left: calc(50% + 98px);
  display: grid;
  justify-items: start;
  align-items: center;
  color: #347878;
  transform: translateY(-50%) rotate(-5deg);
}

.george-scan-note span {
  margin-left: 8px;
  font-family: "Bradley Hand", "Segoe Print", cursive;
  font-size: 27px;
  font-weight: 600;
}

.george-scan-note svg {
  width: 52px;
  height: 52px;
  margin-top: -4px;
  margin-left: -2px;
  stroke-width: 1.7;
  transform: rotate(-17deg);
}

.george-security {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 6px;
  max-width: 310px;
  margin: 0 auto;
  color: #526177;
  font-size: 11px;
  line-height: 1.38;
}

.george-security svg {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin-top: 1px;
  color: #347878;
}

.george-bottom-art {
  position: absolute;
  z-index: 0;
  right: 0;
  bottom: 0;
  left: 0;
  height: 126px;
  overflow: hidden;
  pointer-events: none;
}

.george-bottom-art svg {
  width: 100%;
  height: 100%;
}

.george-bottom-art .george-wave-light {
  fill: #dbe9e4;
}

.george-bottom-art .george-wave-sage {
  fill: #a9cfc7;
}

.george-bottom-art .george-wave-teal {
  fill: #3d9795;
  opacity: .48;
}

.george-noscript {
  margin: 10px 0 0;
  color: #347878;
  font-size: 12px;
  text-align: center;
}

.george-noscript a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 700px) {
  .george-page {
    padding: 0;
    background: #fff;
  }

  .george-card-shell {
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .george-content {
    padding: 30px 40px 157px;
  }

  .george-logo-link {
    width: min(285px, 82vw);
  }

  .george-tagline {
    flex-direction: column;
    gap: 0;
    margin-top: 10px;
    margin-bottom: 27px;
    font-size: 10px;
    letter-spacing: .18em;
  }

  .george-tagline span + span::before {
    content: none;
  }

  .george-profile-frame {
    width: 146px;
    height: 146px;
  }

  .george-identity h1 {
    margin-top: 18px;
    font-size: 34px;
  }

  .george-role {
    font-size: 11px;
    letter-spacing: .17em;
  }

  .george-divider {
    margin-top: 17px;
    margin-bottom: 13px;
  }

  .george-description {
    font-size: 15px;
  }

  .george-actions {
    margin-top: 25px;
  }

  .george-action {
    min-height: 70px;
    grid-template-columns: 47px minmax(0, 1fr) 20px;
    gap: 13px;
    padding-right: 14px;
    border-radius: 16px;
  }

  .george-action-icon {
    width: 47px;
    height: 47px;
  }

  .george-action-icon svg {
    width: 24px;
    height: 24px;
  }

  .george-action-copy strong {
    font-size: 15px;
  }

  .george-action-copy small {
    font-size: 14px;
  }

  .george-save-section {
    margin-top: 20px;
  }

  .george-save {
    min-height: 74px;
    grid-template-columns: 47px minmax(0, 1fr) 17px;
    gap: 13px;
    border-radius: 16px;
  }

  .george-save-icon {
    width: 47px;
    height: 47px;
    border-radius: 12px;
  }

  .george-save-icon svg {
    width: 27px;
    height: 27px;
  }

  .george-save-copy strong {
    font-size: 15px;
  }

  .george-save-copy small {
    font-size: 11px;
  }

  .george-qr-section {
    margin-top: 14px;
  }

  .george-qr-heading {
    gap: 8px;
    font-size: 9px;
    letter-spacing: .1em;
  }

  .george-qr-content {
    gap: 21px;
    margin-top: 16px;
  }

  .george-qr-frame {
    width: 155px;
    height: 155px;
    padding: 8px;
  }

  .george-scan-note span {
    font-size: 24px;
  }

  .george-scan-note svg {
    width: 47px;
    height: 47px;
  }

  .george-security {
    font-size: 10px;
  }

  .george-bottom-art {
    height: 104px;
  }
}

@media (max-width: 360px) {
  .george-content {
    padding-inline: 34px;
  }

  .george-qr-content {
    gap: 13px;
  }

  .george-qr-frame {
    width: 143px;
    height: 143px;
  }

  .george-scan-note span {
    font-size: 21px;
  }
}

/* Keep the complete contact card comfortably within common phone-height viewports. */
@media (max-width: 700px) and (max-height: 980px) {
  .george-content {
    padding: 14px 36px 0;
  }

  .george-logo-link {
    width: min(248px, 74vw);
  }

  .george-tagline {
    gap: 0;
    margin-top: 4px;
    margin-bottom: 14px;
    font-size: 8px;
    letter-spacing: .16em;
    line-height: 1.2;
  }

  .george-profile-frame {
    width: 116px;
    height: 116px;
  }

  .george-identity h1 {
    margin-top: 10px;
    font-size: 30px;
  }

  .george-role {
    font-size: 9px;
    letter-spacing: .16em;
  }

  .george-divider {
    width: 42px;
    margin-top: 9px;
    margin-bottom: 8px;
  }

  .george-description {
    max-width: 310px;
    font-size: 13px;
    line-height: 1.3;
  }

  .george-actions {
    gap: 6px;
    margin-top: 14px;
  }

  .george-action {
    min-height: 50px;
    grid-template-columns: 38px minmax(0, 1fr) 16px;
    gap: 10px;
    padding: 5px 10px 5px 8px;
    border-radius: 13px;
  }

  .george-action-icon {
    width: 38px;
    height: 38px;
  }

  .george-action-icon svg {
    width: 20px;
    height: 20px;
  }

  .george-action-copy {
    gap: 1px;
  }

  .george-action-copy strong {
    font-size: 12.5px;
  }

  .george-action-copy small {
    font-size: 11.5px;
  }

  .george-action-arrow {
    width: 16px;
  }

  .george-save-section {
    margin-top: 12px;
  }

  .george-save {
    min-height: 52px;
    grid-template-columns: 38px minmax(0, 1fr) 15px;
    gap: 10px;
    padding: 6px 10px 6px 8px;
    border-radius: 13px;
  }

  .george-save-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .george-save-icon svg {
    width: 22px;
    height: 22px;
  }

  .george-save-copy {
    gap: 1px;
  }

  .george-save-copy strong {
    font-size: 13px;
  }

  .george-save-copy small {
    font-size: 9.5px;
  }

  .george-save-mark {
    font-size: 20px;
  }

  .george-save-status {
    min-height: 12px;
    margin: 4px 6px 0;
    font-size: 8.5px;
  }

  .george-qr-section {
    margin-top: 7px;
  }

  .george-qr-heading {
    gap: 6px;
    font-size: 8px;
    letter-spacing: .07em;
  }

  .george-qr-content {
    gap: 10px;
    margin-top: 8px;
    margin-bottom: 7px;
  }

  .george-qr-mark {
    width: 24px;
    height: 24px;
    padding: 3px;
  }

  .george-scan-note {
    left: calc(50% + 58px);
  }

  .george-qr-frame {
    width: 108px;
    height: 108px;
    padding: 6px;
    border-radius: 10px;
  }

  .george-scan-note span {
    margin-left: 5px;
    font-size: 18px;
  }

  .george-scan-note svg {
    width: 36px;
    height: 36px;
  }

  .george-security {
    max-width: 260px;
    gap: 4px;
    font-size: 8.5px;
    line-height: 1.25;
  }

  .george-security svg {
    width: 11px;
    height: 11px;
  }

  .george-bottom-art {
    height: 76px;
  }
}

@media (max-width: 360px) {
  .george-action:nth-child(4) .george-action-copy strong {
    font-size: 12px;
    letter-spacing: -.02em;
  }

  .george-save-copy strong {
    font-size: 11.5px;
    letter-spacing: -.02em;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .george-action,
  .george-save {
    transition: none;
  }

  .george-action:hover,
  .george-save:hover {
    transform: none;
  }
}
