.nfc-page {
  --nfc-ink: var(--ink, #142234);
  --nfc-blue: var(--accent-deep, #115a9c);
  --nfc-muted: #475a70;
  --nfc-line: #d2ddea;
  --nfc-motion: cubic-bezier(.2, .75, .2, 1);
  min-height: calc(100svh - 76px);
  background: radial-gradient(ellipse at 20% 0, #ecf4fc, transparent 58%), #f7f8fa;
  color: var(--nfc-ink);
}

.nfc-shell {
  width: min(calc(100% - 28px), 1060px);
  margin: 0 auto;
  padding: 15px 0 48px;
}

.nfc-identity {
  position: relative;
  isolation: isolate;
  display: grid;
  overflow: hidden;
  border: 1px solid var(--nfc-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 54px #2a506112;
}

.nfc-portrait {
  position: relative;
  isolation: isolate;
  margin: 0;
  overflow: hidden;
  min-width: 0;
  aspect-ratio: 1.94;
  background: #d7e2f0;
}

.nfc-portrait::after {
  position: absolute;
  inset: 9px;
  border: 1px solid #f3f8ff75;
  border-radius: 8px;
  content: '';
  pointer-events: none;
}

.nfc-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% 36%;
  animation: nfc-frame 850ms var(--nfc-motion) both;
}

.nfc-intro {
  align-self: center;
  min-width: 0;
  padding: 22px clamp(18px, 6vw, 50px) 25px;
}

.nfc-caption {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--nfc-blue);
  font-size: .76rem;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.nfc-caption::before {
  width: 17px;
  height: 2px;
  background: linear-gradient(90deg,#d7d72b,#1f6cc4);
  content: '';
  flex: 0 0 auto;
}

.nfc-intro h1 {
  max-width: 15ch;
  font-size: clamp(2.3rem, 9vw, 3.55rem);
  line-height: .99;
  letter-spacing: -.072em;
  text-wrap: balance;
  overflow-wrap: anywhere;
  animation: nfc-heading 650ms 100ms var(--nfc-motion) both;
}

.nfc-title {
  margin-top: 9px;
  color: var(--nfc-blue);
  font: italic 400 clamp(1.06rem, 4vw, 1.45rem)/1.28 var(--serif, Georgia, serif);
}

.nfc-location,
.nfc-description {
  margin-top: 12px;
  color: var(--nfc-muted);
  line-height: 1.5;
}

.nfc-description { max-width: 57ch; }
.nfc-description p + p { margin-top: .48rem; }

.nfc-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.nfc-quick-actions button {
  min-height: 46px;
  border: 1px solid #a8bccf;
  border-radius: 999px;
  cursor: pointer;
  padding: 8px 10px;
  font: inherit;
  font-size: .91rem;
  font-weight: 700;
  line-height: 1.2;
  transition: translate .24s var(--nfc-motion), background-color .24s ease, border-color .24s ease;
}

.nfc-quick-actions button:hover { translate: 0 -2px; }
.nfc-quick-actions .nfc-save { border-color: var(--nfc-blue); background: var(--nfc-blue); color: #fff; }
.nfc-quick-actions .nfc-save:hover { border-color: #0a4174; background: #0a4174; }
.nfc-share { background: transparent; color: var(--nfc-ink); }
.nfc-share:hover { border-color: var(--nfc-blue); background: #edf4fb; }

.nfc-link-access { margin-top: 15px; }
.nfc-link-access label { display: block; margin-bottom: 4px; font-size: .84rem; font-weight: 700; }
.nfc-link-access input { width: 100%; max-width: 350px; border: 1px solid var(--nfc-line); border-radius: 5px; padding: 10px; color: var(--nfc-ink); }
.nfc-status { color: var(--nfc-blue); font-size: .88rem; }
.nfc-status:not(:empty) { margin-top: 9px; }

.nfc-endpoints {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.nfc-contact,
.nfc-social {
  min-width: 0;
  border: 1px solid var(--nfc-line);
  border-radius: 14px;
  padding: clamp(17px, 4.8vw, 31px);
  background: #fff;
}

.nfc-social { background: linear-gradient(155deg,#eaf3fe,#f6faff 74%); }

.nfc-endpoints h2 {
  margin: 0 0 13px;
  font-size: clamp(1.28rem, 4.5vw, 1.65rem);
  line-height: 1.17;
  letter-spacing: -.04em;
}

.nfc-links {
  display: grid;
  border-top: 1px solid var(--nfc-line);
}

.nfc-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  min-height: 53px;
  padding: 10px 3px 10px 0;
  border-bottom: 1px solid var(--nfc-line);
  color: var(--nfc-ink);
  line-height: 1.35;
  text-decoration: none;
  transition: color .2s ease;
}

.nfc-link:hover { color: var(--nfc-blue); }
.nfc-link > span { min-width: 0; overflow-wrap: anywhere; }

.nfc-link-detail {
  display: block;
  margin-top: 2px;
  color: var(--nfc-muted);
  font-size: .86rem;
  line-height: 1.35;
}

.nfc-arrow {
  position: relative;
  flex: 0 0 8px;
  height: 8px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transition: transform .25s var(--nfc-motion);
}

.nfc-arrow::after {
  position: absolute;
  top: 3px;
  right: -2px;
  width: 12px;
  height: 1px;
  background: currentColor;
  transform: rotate(-45deg);
  content: '';
}

.nfc-link:hover .nfc-arrow { transform: translate(3px, -3px); }

.nfc-quick-actions button:focus-visible,
.nfc-link:focus-visible,
.nfc-link-access input:focus-visible {
  outline: 2px solid var(--nfc-blue);
  outline-offset: 3px;
}

@keyframes nfc-heading {
  from { transform: translateY(13px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes nfc-frame {
  from { transform: scale(1.055); clip-path: inset(0 0 10% 0); opacity: .5; }
  to { transform: scale(1); clip-path: inset(0); opacity: 1; }
}

@media (min-width: 600px) {
  .nfc-shell { width: min(calc(100% - 56px), 1060px); padding: 32px 0 68px; }
  .nfc-endpoints { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 14px; margin-top: 14px; }
  .nfc-endpoints > :only-child { grid-column: 1 / -1; }
  .nfc-intro { padding: 30px clamp(25px, 5.2vw, 58px) 35px; }
  .nfc-quick-actions { grid-template-columns: repeat(2, max-content); }
  .nfc-quick-actions button { padding-inline: 18px; }
}

@media (min-width: 790px) {
  .nfc-shell { padding-top: clamp(36px, 5.4vw, 83px); }
  .nfc-identity:has(.nfc-portrait) { grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); min-height: clamp(310px, 39vw, 410px); }
  .nfc-portrait { aspect-ratio: auto; }
  .nfc-portrait::after { inset: 13px; }
  .nfc-portrait img { position: absolute; inset: 0; object-position: 53% 37%; }
  .nfc-intro h1 { font-size: clamp(2.65rem, 5.3vw, 4.8rem); }
  .nfc-title { margin-top: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .nfc-intro h1,
  .nfc-portrait img { animation: none; }
  .nfc-page *, .nfc-page *::before, .nfc-page *::after { transition: none !important; }
}
