/**
 * Hero block — front-end styles
 * Mirrors design/index.html .hero rules.
 *
 * Depends on globals (.container, .btn, .btn--primary, .btn--ghost-light, .mono)
 * which live in /assets/css/global.css.
 */

.hero {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
	display: flex;
	align-items: stretch;
	padding-top: 64px;
	padding-bottom: 0;
	position: relative;
	min-height: 720px;
	overflow: hidden;
}

.hero__container {
	width: 100%;
}

.hero__inner {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	width: 100%;
	align-items: stretch;
	gap: 0;
}

.hero__left {
	padding: 64px 64px 56px 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 40px;
}

.hero__right {
	display: flex;
	align-items: flex-end;
	align-self: end;
	position: relative;
}

.hero__photo {
	width: 100%;
	aspect-ratio: 5 / 6;
	max-height: 100%;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	overflow: hidden;
}

.hero__photo-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

.hero__badges {
	position: absolute;
	right: 24px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	display: flex;
	flex-direction: column;
	gap: 14px;
	pointer-events: none;
}

.hero__badge {
	width: 96px;
	height: auto;
	display: block;
	object-fit: contain;
	filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35));
}

@media (max-width: 1024px) {
	.hero__badges { right: 16px; gap: 10px; }
	.hero__badge  { width: 76px; }
}

@media (max-width: 767px) {
	.hero__badges { right: 12px; top: auto; bottom: 30%; transform: none; gap: 8px; }
	.hero__badge  { width: 64px; }
}

.hero__photo-label {
	position: absolute;
	top: 24px;
	left: 24px;
	z-index: 2;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--white-soft);
	background: rgba(0, 0, 0, 0.55);
	padding: 6px 10px;
	border: 1px solid rgba(255, 255, 255, 0.14);
}

/* ID card — dark gradient overlay at bottom of portrait */

.hero__id {
	position: relative;
	z-index: 1;
	background: linear-gradient(180deg, rgba(10, 10, 10, 0) 0%, rgba(10, 10, 10, 0.85) 60%, rgba(10, 10, 10, 0.95) 100%);
	padding: 80px 32px 28px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.hero__id-name {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 400;
	font-size: 36px;
	line-height: 1;
	letter-spacing: -0.01em;
	text-transform: uppercase;
	color: var(--wp--preset--color--paper);
}

.hero__id-role {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--white-soft);
}

/* Eyebrow + pulse */

.hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--white-soft);
	align-self: flex-start;
}

.hero__eyebrow .pulse {
	width: 9px;
	height: 9px;
	background: var(--wp--preset--color--success);
	display: inline-block;
}

@media (prefers-reduced-motion: no-preference) {
	.hero__eyebrow .pulse {
		animation: tsuyo-hero-blink 4s infinite steps(1, end);
	}
}

/* Square stays visible, then blinks off twice quickly, then visible again. */
@keyframes tsuyo-hero-blink {
	0%    { opacity: 1; }   /* visible (rest) */
	85%   { opacity: 1; }   /* still visible */
	87.5% { opacity: 0; }   /* blink 1 off */
	90%   { opacity: 1; }   /* on */
	92.5% { opacity: 0; }   /* blink 2 off */
	95%   { opacity: 1; }   /* on */
	100%  { opacity: 1; }   /* visible to end of cycle */
}

/* Headline + Sub */

.hero__headline {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 400;
	font-size: clamp(64px, 9vw, 88px);
	line-height: 1.0;
	letter-spacing: -0.01em;
	text-transform: uppercase;
	color: var(--wp--preset--color--paper);
	text-wrap: balance;
	max-width: 16ch;
}

.hero__headline .red {
	color: var(--wp--preset--color--red);
}

.hero__sub {
	margin: 0;
	font-family: var(--wp--preset--font-family--body);
	font-weight: 400;
	font-size: 20px;
	line-height: 1.45;
	color: var(--wp--preset--color--white-soft);
	max-width: 46ch;
	text-wrap: pretty;
}

/* ── Shine border button (hero primary CTA only) ────────────
   Per https://www.frontendhero.dev/tutorial/animated-shine-border-button/
   Three layers: anchor (button) > .tsuyo-shine__mask (clipped 1px ring)
   > .tsuyo-shine__glow (rotating conic gradient).
   The mask uses CSS mask-composite to expose only a 1px border path. */

.tsuyo-shine {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

.tsuyo-shine__mask {
	position: absolute;
	inset: 0;
	pointer-events: none;
	padding: 1.5px;
	-webkit-mask:
		linear-gradient(#000 0 0) content-box,
		linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	        mask-composite: exclude;
	z-index: 1;
}

.tsuyo-shine__glow {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 600px;
	height: 600px;
	transform: translate(-50%, -50%);
	transform-origin: center;
	background: conic-gradient(
		from 0deg,
		transparent 0%,
		#FFFFFF 8%,
		#FFB3A5 14%,
		transparent 22%,
		transparent 100%
	);
	animation: tsuyo-shine-rotate 3s linear infinite;
}

@keyframes tsuyo-shine-rotate {
	to { transform: translate(-50%, -50%) rotate(360deg); }
}

.tsuyo-shine__label {
	position: relative;
	z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
	.tsuyo-shine__glow { animation: none; opacity: 0.6; }
}

/* CTAs */

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

/* ── Tablet ──────────────────────────────────────────────── */

@media (max-width: 1024px) {
	.hero__inner { grid-template-columns: 55% 45%; }
	.hero__left  { padding: clamp(56px, 8vw, 80px) clamp(24px, 4vw, 32px) clamp(56px, 8vw, 80px) 0; }
}

/* ── Mobile ──────────────────────────────────────────────── */

@media (max-width: 767px) {
	.hero { max-height: none; min-height: 0; padding-top: 64px; }

	.hero__inner     { grid-template-columns: 1fr; min-height: auto; }
	.hero__right     { order: -1; }
	.hero__photo     { aspect-ratio: 5 / 3; min-height: 0; max-height: none; }
	.hero__photo-img { object-position: center top; }
	.hero__left      { padding: clamp(28px, 7vw, 48px) 0 clamp(36px, 8vw, 56px); gap: clamp(18px, 4vw, 28px); }

	.hero__id        { padding: 0; background: transparent; }
	.hero__id-name   { font-size: clamp(22px, 5.4vw, 28px); }

	.hero__headline  { font-size: 48px; line-height: 1.02; }
	.hero__sub       { font-size: 16px; max-width: 36ch; line-height: 1.5; }

	.hero__ctas      { gap: 10px; width: 100%; }
	.hero__ctas .btn { flex: 1 1 auto; padding: 12px 16px; font-size: 14px; }
}

/* ── Small mobile ────────────────────────────────────────── */

@media (max-width: 480px) {
	.hero__id-role   { font-size: 10px; line-height: 1.5; }
	.hero__ctas      { flex-direction: column; align-items: stretch; }
	.hero__ctas .btn { width: 100%; }
}
