/* ============================================================
   DRG CARD — Daniel Gracy
   Pure CSS / no external assets
   ============================================================ */

:root {
	--ink: #070a12;
	--ink-edge: #04060c;

	--text: #f3f5fb;
	--text-2: #9aa4bd;
	--text-3: #5e6883;

	--hair: rgba(255, 255, 255, 0.1);
	--hair-top: rgba(255, 255, 255, 0.22);

	--glass: rgba(18, 22, 34, 0.58);
	--tile: rgba(255, 255, 255, 0.05);
	--tile-hover: rgba(255, 255, 255, 0.09);

	--amber: #ffb347;
	--amber-deep: #ff9416;

	--emerald: #34e0a1;

	--violet: #7c4dff;
	--teal: #1fd1c9;
	--rose: #ff4d97;
	--indigo: #2a2a72;

	--sans:
		system-ui,
		-apple-system,
		BlinkMacSystemFont,
		"Segoe UI",
		sans-serif;

	--serif:
		Georgia,
		"Times New Roman",
		serif;

	--mono:
		ui-monospace,
		SFMono-Regular,
		Menlo,
		Monaco,
		Consolas,
		monospace;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html,
body {
	width: 100%;
	height: 100%;
}

body {
	font-family: var(--sans);
	background: var(--ink);
	color: var(--text);
	min-height: 100svh;
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* ============================================================
   AURORA
   ============================================================ */

.aurora {
	position: fixed;
	inset: -20%;
	z-index: 0;
	filter: blur(70px) saturate(135%);
	pointer-events: none;
	overflow: hidden;
}

.blob {
	position: absolute;
	width: 58vmax;
	height: 58vmax;
	border-radius: 50%;
	opacity: 0.55;
	mix-blend-mode: screen;
	will-change: transform;
}

.blob--violet {
	background:
		radial-gradient(
			circle at 30% 30%,
			var(--violet),
			transparent 62%
		);

	top: -10%;
	left: -8%;

	animation: drift1 24s ease-in-out infinite;
}

.blob--teal {
	background:
		radial-gradient(
			circle at 50% 50%,
			var(--teal),
			transparent 60%
		);

	bottom: -16%;
	left: 18%;

	animation: drift2 30s ease-in-out infinite;
}

.blob--rose {
	background:
		radial-gradient(
			circle at 50% 50%,
			var(--rose),
			transparent 60%
		);

	top: -6%;
	right: -12%;

	animation: drift3 26s ease-in-out infinite;
}

.blob--indigo {
	background:
		radial-gradient(
			circle at 50% 50%,
			var(--indigo),
			transparent 58%
		);

	bottom: -22%;
	right: 4%;

	animation: drift1 34s ease-in-out infinite reverse;
}

@keyframes drift1 {
	0%,
	100% {
		transform: translate(0, 0) scale(1);
	}

	33% {
		transform: translate(8vw, 6vh) scale(1.12);
	}

	66% {
		transform: translate(-5vw, -4vh) scale(0.94);
	}
}

@keyframes drift2 {
	0%,
	100% {
		transform: translate(0, 0) scale(1.05);
	}

	50% {
		transform: translate(-9vw, -7vh) scale(0.9);
	}
}

@keyframes drift3 {
	0%,
	100% {
		transform: translate(0, 0) scale(0.95);
	}

	50% {
		transform: translate(7vw, 8vh) scale(1.15);
	}
}

/* ============================================================
   GRAIN / VIGNETTE
   ============================================================ */

.grain {
	position: fixed;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	opacity: 0.45;

	background-image:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");

	mix-blend-mode: overlay;
}

.vignette {
	position: fixed;
	inset: 0;
	z-index: 1;
	pointer-events: none;

	background:
		radial-gradient(
			120% 90% at 50% 40%,
			transparent 40%,
			var(--ink-edge) 100%
		);
}

/* ============================================================
   STAGE
   ============================================================ */

.stage {
	position: relative;
	z-index: 2;

	min-height: 100svh;

	display: grid;
	place-items: center;

	padding: clamp(16px, 4vw, 40px);

	perspective: 1200px;
}

/* ============================================================
   CARD
   ============================================================ */

.card {
	position: relative;

	width: min(430px, 100%);

	padding: 26px 24px 20px;

	border-radius: 26px;

	background:
		linear-gradient(
			180deg,
			rgba(255, 255, 255, 0.06),
			rgba(255, 255, 255, 0) 30%
		),
		var(--glass);

	border: 1px solid var(--hair);

	box-shadow:
		0 1px 0 0 var(--hair-top) inset,
		0 30px 70px -28px rgba(0, 0, 0, 0.85),
		0 0 0 1px rgba(0, 0, 0, 0.4);

	backdrop-filter: blur(28px) saturate(140%);
	-webkit-backdrop-filter: blur(28px) saturate(140%);

	overflow: hidden;

	transform-style: preserve-3d;

	transition:
		transform 0.18s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.card__sheen {
	position: absolute;
	inset: 0;

	border-radius: inherit;

	pointer-events: none;

	background:
		radial-gradient(
			220px 220px at var(--mx, 50%) var(--my, 0%),
			rgba(255, 255, 255, 0.1),
			transparent 60%
		);

	opacity: 0;

	transition: opacity 0.3s ease;

	z-index: 3;
}

.card:hover .card__sheen {
	opacity: 1;
}

.card > *:not(.card__sheen) {
	position: relative;
	z-index: 2;
}

/* ============================================================
   META
   ============================================================ */

.meta {
	display: flex;
	justify-content: space-between;
	align-items: center;

	font-family: var(--mono);
	font-size: 10.5px;
	letter-spacing: 0.14em;

	color: var(--text-3);

	text-transform: uppercase;

	margin-bottom: 22px;
}

.meta__brand {
	display: inline-flex;
	align-items: center;
	gap: 7px;

	color: var(--text-2);
}

.dot-mark {
	width: 7px;
	height: 7px;

	border-radius: 50%;

	background:
		conic-gradient(
			from 0deg,
			var(--violet),
			var(--teal),
			var(--rose),
			var(--violet)
		);
}

.meta__clock {
	color: var(--text-2);
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
	display: flex;
	gap: 16px;
	align-items: center;
}

.avatar {
	position: relative;

	flex: 0 0 auto;

	width: 76px;
	height: 76px;

	display: grid;
	place-items: center;

	border-radius: 50%;

	background:
		linear-gradient(
			145deg,
			rgba(124, 77, 255, 0.22),
			rgba(31, 209, 201, 0.08)
		);

	border: 1px solid rgba(255, 255, 255, 0.14);

	box-shadow:
		0 10px 30px rgba(0, 0, 0, 0.28),
		inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.avatar > span:first-child {
	font-family: var(--serif);
	font-size: 23px;
	font-weight: 600;
	letter-spacing: -0.04em;

	background:
		linear-gradient(
			135deg,
			#ffffff,
			#b8c0d9
		);

	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.avatar__ring {
	position: absolute;
	inset: -5px;

	border-radius: 50%;

	background:
		conic-gradient(
			from 200deg,
			var(--violet),
			var(--teal),
			var(--rose),
			var(--amber),
			var(--violet)
		);

	-webkit-mask:
		radial-gradient(
			farthest-side,
			transparent calc(100% - 2px),
			#000 calc(100% - 2px)
		);

	mask:
		radial-gradient(
			farthest-side,
			transparent calc(100% - 2px),
			#000 calc(100% - 2px)
		);

	opacity: 0.9;

	filter:
		drop-shadow(
			0 0 12px rgba(124, 77, 255, 0.4)
		);
}

.hero__id {
	min-width: 0;
	flex: 1;
}

.name {
	font-family: var(--serif);

	font-weight: 600;

	font-size: clamp(21px, 6vw, 29px);

	line-height: 1.04;

	letter-spacing: -0.025em;

	overflow-wrap: anywhere;
}

.role {
	margin-top: 7px;

	font-size: 12.5px;

	line-height: 1.4;

	color: var(--text-2);

	font-weight: 400;
}

.status {
	margin-top: 10px;

	display: inline-flex;
	align-items: center;
	gap: 7px;

	padding: 4px 10px 4px 8px;

	border-radius: 999px;

	background:
		rgba(52, 224, 161, 0.08);

	border:
		1px solid rgba(52, 224, 161, 0.22);

	font-family: var(--mono);

	font-size: 9px;

	letter-spacing: 0.09em;

	text-transform: uppercase;

	color: #9ff0d2;
}

.status__dot {
	position: relative;

	width: 7px;
	height: 7px;

	border-radius: 50%;

	background: var(--emerald);

	box-shadow:
		0 0 8px var(--emerald);
}

.status__dot::after {
	content: "";

	position: absolute;
	inset: 0;

	border-radius: 50%;

	border: 2px solid var(--emerald);

	animation:
		ping 1.8s cubic-bezier(0, 0, 0.2, 1)
		infinite;
}

@keyframes ping {
	0% {
		transform: scale(1);
		opacity: 0.7;
	}

	80%,
	100% {
		transform: scale(2.8);
		opacity: 0;
	}
}

/* ============================================================
   BIO
   ============================================================ */

.bio {
	margin-top: 20px;
}

.bio p {
	font-size: 13.5px;

	line-height: 1.55;

	color: var(--text-2);
}

.tags {
	list-style: none;

	display: flex;
	flex-wrap: wrap;

	gap: 7px;

	margin-top: 14px;
}

.tags li {
	font-family: var(--mono);

	font-size: 9.5px;

	letter-spacing: 0.06em;

	text-transform: uppercase;

	color: var(--text-2);

	padding: 4px 9px;

	border-radius: 7px;

	background: var(--tile);

	border: 1px solid var(--hair);
}

/* ============================================================
   CONTACT ACTIONS
   ============================================================ */

.actions {
	margin-top: 20px;

	display: grid;

	grid-template-columns:
		repeat(3, 1fr);

	gap: 9px;
}

.tile {
	display: flex;

	flex-direction: column;

	align-items: center;

	gap: 8px;

	padding: 15px 6px 13px;

	border-radius: 15px;

	background: var(--tile);

	border: 1px solid var(--hair);

	color: var(--text);

	text-decoration: none;

	transition:
		transform 0.18s ease,
		background 0.18s ease,
		border-color 0.18s ease,
		box-shadow 0.18s ease;

	min-height: 72px;

	justify-content: center;
}

.tile svg {
	width: 21px;
	height: 21px;

	fill: none;

	stroke: currentColor;

	stroke-width: 1.6;

	stroke-linecap: round;
	stroke-linejoin: round;
}

.tile span {
	font-size: 11.5px;

	font-weight: 500;

	letter-spacing: 0.01em;
}

.tile:hover,
.tile:focus-visible {
	transform: translateY(-2px);

	background: var(--tile-hover);

	border-color: var(--hair-top);

	box-shadow:
		0 12px 26px -16px
		rgba(124, 77, 255, 0.6);
}

#link-email:hover {
	color: #cdbfff;
}

#link-call:hover {
	color: #9ff0d2;
}

#link-wa:hover {
	color: #8fe6e0;
}

/* ============================================================
   SOCIALS
   ============================================================ */

.socials {
	margin-top: 18px;

	padding-top: 18px;

	border-top: 1px solid var(--hair);

	display: flex;

	justify-content: center;

	gap: 10px;
}

.soc {
	width: 42px;
	height: 42px;

	border-radius: 50%;

	display: grid;

	place-items: center;

	background: var(--tile);

	border: 1px solid var(--hair);

	color: var(--text-2);

	transition:
		transform 0.18s ease,
		color 0.18s ease,
		background 0.18s ease,
		border-color 0.18s ease;
}

.soc svg {
	width: 19px;
	height: 19px;

	fill: currentColor;
}

.soc:hover,
.soc:focus-visible {
	transform: translateY(-2px);

	color: var(--text);

	background: var(--tile-hover);

	border-color: var(--hair-top);
}

/* ============================================================
   CTA
   ============================================================ */

.cta {
	margin-top: 18px;

	display: flex;

	flex-direction: column;

	gap: 9px;
}

.btn {
	display: inline-flex;

	align-items: center;

	justify-content: center;

	gap: 9px;

	width: 100%;

	padding: 14px 16px;

	border-radius: 14px;

	font-family: var(--sans);

	font-size: 14px;

	font-weight: 600;

	cursor: pointer;

	border: 1px solid transparent;

	transition:
		transform 0.16s ease,
		filter 0.16s ease,
		background 0.16s ease,
		border-color 0.16s ease;
}

.btn svg {
	width: 18px;
	height: 18px;
}

.btn--primary {
	background:
		linear-gradient(
			180deg,
			var(--amber),
			var(--amber-deep)
		);

	color: #2a1a04;

	box-shadow:
		0 14px 30px -14px
		rgba(255, 148, 22, 0.7),

		0 1px 0
		rgba(255, 255, 255, 0.4)
		inset;
}

.btn--primary svg {
	fill: none;

	stroke: #2a1a04;

	stroke-width: 2;

	stroke-linecap: round;
	stroke-linejoin: round;
}

.btn--primary:hover {
	filter: brightness(1.06);

	transform: translateY(-1px);
}

.btn--primary:active {
	transform: translateY(0);
}

.btn--ghost {
	background: var(--tile);

	border-color: var(--hair);

	color: var(--text);
}

.btn--ghost svg {
	stroke: currentColor;
}

.btn--ghost:hover {
	background: var(--tile-hover);

	border-color: var(--hair-top);
}

/* ============================================================
   FOOTER
   ============================================================ */

.foot {
	margin-top: 18px;

	padding-top: 15px;

	border-top: 1px solid var(--hair);

	display: flex;

	align-items: center;

	justify-content: space-between;

	gap: 10px;

	font-family: var(--mono);

	font-size: 9px;

	letter-spacing: 0.08em;

	text-transform: uppercase;

	color: var(--text-3);
}

.foot__contact {
	display: inline-flex;

	align-items: center;

	gap: 6px;
}

.pin {
	width: 6px;
	height: 6px;

	border-radius:
		50% 50% 50% 0;

	background: var(--rose);

	transform: rotate(45deg);

	flex: 0 0 auto;
}

.foot__mark svg {
	width: 18px;
	height: 18px;

	fill: var(--text-3);

	opacity: 0.7;
}

.foot__credit {
	color: var(--text-3);
}

/* ============================================================
   TOAST
   ============================================================ */

.toast {
	position: fixed;

	left: 50%;

	bottom: 24px;

	z-index: 30;

	transform:
		translate(-50%, 28px);

	padding: 11px 16px;

	border-radius: 12px;

	background:
		rgba(18, 22, 34, 0.85);

	border:
		1px solid var(--hair-top);

	backdrop-filter: blur(14px);

	font-family: var(--mono);

	font-size: 11px;

	letter-spacing: 0.06em;

	color: var(--text);

	box-shadow:
		0 20px 40px -18px
		rgba(0, 0, 0, 0.8);

	opacity: 0;

	pointer-events: none;

	transition:
		opacity 0.28s ease,
		transform 0.28s
		cubic-bezier(0.2, 0.8, 0.2, 1);
}

.toast.show {
	opacity: 1;

	transform:
		translate(-50%, 0);
}

/* ============================================================
   REVEAL
   IMPORTANT:
   Content remains visible without JS.
   ============================================================ */

[data-reveal] {
	opacity: 1;
	transform: none;
}

.js-ready [data-reveal] {
	opacity: 0;
	transform: translateY(14px);
}

.js-ready .card.in [data-reveal] {
	animation:
		rise 0.7s
		cubic-bezier(0.2, 0.8, 0.2, 1)
		forwards;
}

@keyframes rise {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Stagger */

.card.in .meta {
	animation-delay: 0.05s;
}

.card.in .hero {
	animation-delay: 0.13s;
}

.card.in .bio {
	animation-delay: 0.21s;
}

.card.in .actions {
	animation-delay: 0.29s;
}

.card.in .socials {
	animation-delay: 0.37s;
}

.card.in .cta {
	animation-delay: 0.45s;
}

.card.in .foot {
	animation-delay: 0.53s;
}

/* ============================================================
   FOCUS
   ============================================================ */

:focus-visible {
	outline: 2px solid var(--amber);

	outline-offset: 3px;

	border-radius: 10px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 420px) {
	.stage {
		padding: 14px;
	}

	.card {
		padding: 23px 18px 17px;
	}

	.name {
		font-size: clamp(19px, 6vw, 25px);
	}

	.hero {
		gap: 13px;
	}

	.avatar {
		width: 68px;
		height: 68px;
	}

	.role {
		font-size: 12px;
	}

	.bio p {
		font-size: 13px;
	}

	.foot {
		font-size: 8px;
	}
}

@media (max-width: 350px) {
	.actions {
		gap: 6px;
	}

	.tile {
		padding-left: 3px;
		padding-right: 3px;
	}

	.tile span {
		font-size: 10.5px;
	}

	.avatar {
		width: 62px;
		height: 62px;
	}

	.name {
		font-size: 18px;
	}
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

	.blob,
	.status__dot::after {
		animation: none;
	}

	.js-ready .card.in [data-reveal] {
		animation: none;

		opacity: 1;

		transform: none;
	}

	.card {
		transition: none;
	}

	.card__sheen {
		transition: none;
	}
}
