:root {
  --wine: #7b1e2b;
  --wine-bright: #9d2b3c;
  --night: #0b0a09;
  --panel: #141210;
  --line: rgba(255, 255, 255, 0.11);
  --soft: #aaa39c;
  --serif: "Italiana", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--night);
}

body {
  margin: 0;
  color: #f7f4ee;
  font-family: var(--sans);
  font-weight: 400;
}

.card-page {
  position: relative;
  display: grid;
  width: 100%;
  height: 100svh;
  place-items: start center;
  padding: max(8px, env(safe-area-inset-top)) 8px 8px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% -10%, rgba(123, 30, 43, 0.25), transparent 31%),
    radial-gradient(circle at 95% 85%, rgba(123, 30, 43, 0.08), transparent 28%),
    linear-gradient(145deg, #100e0d, #070606);
}

.ambient {
  position: fixed;
  border: 1px solid rgba(255, 255, 255, 0.035);
  border-radius: 50%;
  pointer-events: none;
  animation: ambientDrift 14s ease-in-out infinite alternate;
}

.ambient--one { top: -30vw; left: -20vw; width: 65vw; height: 65vw; }
.ambient--two { right: -18vw; bottom: -30vw; width: 58vw; height: 58vw; animation-delay: -6s; }

.digital-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: relative;
  display: flex;
  width: min(100%, 455px);
  height: calc(100dvh - 16px);
  max-height: 940px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 27px;
  background: linear-gradient(160deg, rgba(25, 22, 20, 0.99), rgba(10, 9, 8, 0.995) 61%);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.58), inset 0 1px rgba(255, 255, 255, 0.04);
  transform: perspective(1100px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transition: transform 0.35s ease-out;
  animation: cardIn 0.75s cubic-bezier(.2, .7, .2, 1) both;
}

.digital-card::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background:
    repeating-linear-gradient(118deg, transparent 0 8px, rgba(255, 255, 255, 0.006) 9px, transparent 10px),
    linear-gradient(115deg, transparent 35%, rgba(255,255,255,.018) 48%, transparent 61%);
  background-size: auto, 220% 100%;
  content: "";
  pointer-events: none;
  animation: silkLight 8s ease-in-out infinite;
}

.embossed-mark {
  position: absolute;
  z-index: 0;
  top: 122px;
  right: -130px;
  display: grid;
  width: 350px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 50%;
  box-shadow: inset 1px 1px rgba(255, 255, 255, 0.028), inset -3px -3px 8px rgba(0, 0, 0, 0.7);
  color: #201c1a;
  pointer-events: none;
  animation: ringBreathe 7s ease-in-out infinite;
}

.embossed-mark::after {
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(123, 30, 43, 0.14);
  border-radius: 50%;
  content: "";
}

.embossed-mark span {
  margin-left: -20px;
  font: italic 280px/.8 Georgia, serif;
  text-shadow: -1px -1px rgba(255, 255, 255, 0.04), 3px 4px 5px rgba(0, 0, 0, 0.82);
}

.art-motion { position: absolute; z-index: 1; top: 157px; right: 15px; width: 115px; height: 80px; pointer-events: none; }
.art-motion i { position: absolute; display: block; border-radius: 50%; background: var(--wine); box-shadow: 0 0 18px rgba(123,30,43,.32); }
.art-motion i:nth-child(1) { top: 4px; right: 14px; width: 5px; height: 5px; animation: paintFloat 4s ease-in-out infinite; }
.art-motion i:nth-child(2) { top: 29px; right: 43px; width: 3px; height: 3px; opacity: .65; animation: paintFloat 5s ease-in-out -2s infinite; }
.art-motion i:nth-child(3) { right: 1px; bottom: 2px; width: 7px; height: 7px; opacity: .5; animation: paintFloat 6s ease-in-out -3s infinite; }

.card-header,
.identity,
.quick-actions,
.link-list,
.save-contact,
.card-footer { position: relative; z-index: 2; }

.card-header {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}

.card-header img { display: block; width: 122px; height: auto; }
.card-type { display: flex; align-items: center; gap: 7px; color: #8f8983; font-size: 7px; letter-spacing: .12em; text-transform: uppercase; }
.card-type i { width: 5px; height: 5px; border-radius: 50%; background: var(--wine-bright); box-shadow: 0 0 0 4px rgba(123,30,43,.16), 0 0 13px rgba(157,43,60,.45); animation: statusPulse 2.4s ease-in-out infinite; }

.identity { padding: clamp(28px, 5.5vh, 52px) 21px 20px; }
.identity::before { position: absolute; top: 45%; left: 14px; width: 86px; height: 25px; background: linear-gradient(90deg, transparent, rgba(123,30,43,.7), transparent); clip-path: polygon(0 48%, 100% 20%, 96% 64%, 10% 81%); content: ""; filter: blur(.2px); opacity: .38; transform: rotate(-7deg); animation: brushReveal 1.2s .35s both; }
.identity > p { margin: 0 0 9px; color: #837d77; font-size: 7px; letter-spacing: .23em; }
.identity h1 { position: relative; max-width: 325px; margin: 0; font: clamp(43px, 12.5vw, 62px)/.94 var(--serif); letter-spacing: -.035em; text-wrap: balance; transition: filter .25s, transform .25s; }
.identity h1.is-changing { filter: blur(5px); transform: translateY(5px); }
.identity > div { display: flex; align-items: center; gap: 8px; margin-top: 11px; color: #aaa39d; font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.identity > div i { width: 18px; height: 1px; background: var(--wine-bright); }

.quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 16px 9px; }
.quick-action { display: flex; min-width: 0; align-items: center; gap: 9px; padding: 10px 11px; color: #fff; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.025); text-decoration: none; transition: .3s; }
.quick-action--primary { border-color: rgba(123,30,43,.8); background: linear-gradient(135deg,var(--wine-bright),var(--wine)); box-shadow: 0 10px 30px rgba(123,30,43,.18); }
.action-icon { display: grid; flex: 0 0 30px; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: rgba(255,255,255,.09); }
.action-icon svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.quick-action span:nth-child(2) { display: flex; min-width: 0; flex-direction: column; }
.quick-action small,.link-list small,.save-button small { color: #9d9690; font-size: 6px; letter-spacing: .13em; }
.quick-action--primary small { color: rgba(255,255,255,.63); }
.quick-action strong { margin-top: 3px; font-size: 11px; font-weight: 500; }
.quick-action > b { margin-left: auto; font-size: 12px; font-weight: 400; }

.link-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 7px; margin: 0 16px; padding-top: 9px; border-top: 1px solid var(--line); }
.link-list > a { display: flex; min-width: 0; flex-direction: column; align-items: center; gap: 5px; padding: 8px 4px 7px; color: #fff; border: 1px solid rgba(255,255,255,.075); border-radius: 11px; background: rgba(255,255,255,.018); text-align: center; text-decoration: none; transition: .28s; }
.list-icon { display: grid; width: 27px; height: 27px; place-items: center; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; color: #d7d2cc; }
.list-icon svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.45; }
.list-icon .fill { fill: currentColor; stroke: none; }
.link-list > a > span:nth-child(2) { display: flex; min-width: 0; width: 100%; flex-direction: column; }
.link-list strong { overflow: hidden; width: 100%; margin-top: 3px; font-size: 8px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.link-list > a > b { display: none; }

.artist-note {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding: 12px 27px;
  overflow: hidden;
}

.artist-note::before {
  position: absolute;
  top: 50%;
  left: 19px;
  width: 155px;
  height: 36px;
  background: linear-gradient(90deg, rgba(123,30,43,.08), rgba(123,30,43,.5), transparent);
  clip-path: polygon(0 47%, 100% 8%, 92% 67%, 9% 92%);
  content: "";
  opacity: .4;
  transform: translateY(-50%) rotate(-5deg);
  animation: noteBrush 7s ease-in-out infinite;
}

.artist-note > span {
  position: absolute;
  top: 50%;
  right: 24px;
  color: rgba(255,255,255,.035);
  font: clamp(100px, 15vh, 145px)/.7 var(--serif);
  transform: translateY(-50%);
}

.artist-note p {
  position: relative;
  margin: 0;
  font: clamp(20px, 3.15vh, 31px)/1.08 var(--serif);
  letter-spacing: -.015em;
}

.artist-note p em { color: var(--wine-bright); font-weight: 400; }
.artist-note small { position: relative; margin-top: 10px; color: #68615c; font-size: 6px; letter-spacing: .2em; }

.save-contact { margin-top: 0; padding: 14px 16px 10px; color: #171412; background: linear-gradient(150deg,#f3efe7,#ded8ce); box-shadow: 0 -15px 45px rgba(0,0,0,.18); }
.save-heading { display: flex; align-items: center; justify-content: space-between; padding: 0 3px 9px; }
.save-heading > div > span { color: var(--wine); font-size: 7px; font-weight: 600; letter-spacing: .18em; }
.save-heading p { margin: 4px 0 0; color: #706a64; font-size: 9px; }
.save-heading > b { padding: 4px 7px; color: #8b847d; border: 1px solid rgba(23,20,18,.15); border-radius: 99px; font-size: 6px; letter-spacing: .12em; }
.save-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.save-button { position: relative; display: flex; min-width: 0; align-items: center; gap: 8px; padding: 10px; color: #171412; border: 1px solid rgba(23,20,18,.14); border-radius: 11px; background: rgba(255,255,255,.5); text-decoration: none; transition: .28s; }
.save-button.is-recommended { color: #fff; border-color: var(--wine); background: linear-gradient(135deg,var(--wine-bright),var(--wine)); box-shadow: 0 9px 24px rgba(123,30,43,.2); }
.save-button.is-recommended::after { position: absolute; top: -6px; right: 7px; padding: 2px 5px; color: #fff; border-radius: 99px; background: #171412; content: "ÖNERİLEN"; font-size: 5px; letter-spacing: .1em; }
.save-button > svg { flex: 0 0 19px; width: 19px; height: 19px; fill: currentColor; stroke: currentColor; stroke-width: 1.2; }
.save-button > span { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.save-button small { color: #817a73; }
.save-button.is-recommended small { color: rgba(255,255,255,.63); }
.save-button strong { overflow: hidden; margin-top: 3px; font-size: 9px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.save-button > b { font-size: 12px; font-weight: 400; }
.save-note { display: flex; align-items: center; gap: 7px; margin: 8px 3px 0; color: #77716b; font-size: 7px; line-height: 1.4; }
.save-note span { display: grid; flex: 0 0 14px; width: 14px; height: 14px; place-items: center; border: 1px solid #a49d95; border-radius: 50%; font: 8px Georgia,serif; }

.card-footer { display: flex; min-height: 30px; align-items: center; justify-content: space-between; padding: 7px 18px; color: #69635e; font-size: 6px; letter-spacing: .08em; }
.card-footer a { color: #948d86; text-decoration: none; }

@media (hover:hover) {
  .quick-action:hover,.link-list>a:hover,.save-button:hover { transform: translateY(-2px); }
  .link-list>a:hover { border-color: rgba(123,30,43,.55); background: rgba(123,30,43,.08); }
}

@media (max-height: 720px) {
  .card-header { min-height: 54px; padding-top: 8px; padding-bottom: 8px; }
  .card-header img { width: 110px; }
  .identity { padding-top: 14px; padding-bottom: 11px; }
  .identity h1 { font-size: 39px; }
  .identity > div { margin-top: 7px; }
  .quick-action { padding-top: 7px; padding-bottom: 7px; }
  .link-list { padding-top: 6px; }
  .link-list > a { padding-top: 5px; padding-bottom: 5px; }
  .save-contact { padding-top: 10px; padding-bottom: 7px; }
  .save-heading { padding-bottom: 6px; }
  .save-note { margin-top: 5px; }
  .card-footer { min-height: 24px; padding-top: 4px; padding-bottom: 4px; }
}

@media (max-height: 590px) {
  .digital-card { height: auto; max-height: calc(100dvh - 16px); }
  .artist-note { display: none; }
  .save-contact { margin-top: 9px; }
}

@media (min-height: 591px) and (max-height: 780px) {
  .artist-note { padding-top: 8px; padding-bottom: 8px; }
  .artist-note p { font-size: 19px; }
  .artist-note small { margin-top: 6px; }
}

@media (max-width: 355px) {
  .card-page { padding: 5px; }
  .digital-card { border-radius: 23px; }
  .card-type { display: none; }
  .identity h1 { font-size: 38px; }
  .quick-action { padding-right: 8px; padding-left: 8px; }
  .save-button { padding-right: 7px; padding-left: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .digital-card { transform: none !important; }
}

@keyframes cardIn { from { opacity: 0; transform: translateY(20px) scale(.985); } to { opacity: 1; transform: perspective(1100px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)); } }
@keyframes ambientDrift { to { transform: translate3d(3vw,-2vw,0) scale(1.08); } }
@keyframes silkLight { 0%,100% { background-position: 0 0,-50% 0; } 50% { background-position: 0 0,130% 0; } }
@keyframes ringBreathe { 0%,100% { opacity: .72; transform: scale(1); } 50% { opacity: 1; transform: scale(1.025); } }
@keyframes paintFloat { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-10px) scale(1.18); } }
@keyframes statusPulse { 0%,100% { box-shadow: 0 0 0 4px rgba(123,30,43,.13),0 0 8px rgba(157,43,60,.25); } 50% { box-shadow: 0 0 0 7px rgba(123,30,43,0),0 0 16px rgba(157,43,60,.5); } }
@keyframes brushReveal { from { opacity: 0; transform: translateX(-30px) rotate(-7deg) scaleX(.4); } to { opacity: .38; transform: translateX(0) rotate(-7deg) scaleX(1); } }
@keyframes noteBrush { 0%,100% { opacity: .28; transform: translateY(-50%) rotate(-5deg) scaleX(.9); } 50% { opacity: .48; transform: translateY(-50%) rotate(-5deg) scaleX(1.08); } }
