/* ==========================================================================
 * KG Design — TEDx page, The Power of a Nap (.kgd-tedx-*)
 * Measurements are the 1440 Canva canvas, scaled through --kgd-px.
 * ========================================================================== */

.kgd-tedx-inner { width: 100%; max-width: 1310px; margin-inline: auto !important; }

.kgd-tedx-kicker {
	font-family: var(--kgd-sans) !important;
	font-weight: 700 !important;
	font-size: max(14px, calc(24 * var(--kgd-px))) !important;
	line-height: 1.375 !important;
	text-transform: uppercase !important;
	color: var(--kgd-gold) !important;
	margin-bottom: max(10px, calc(18 * var(--kgd-px))) !important;
}
.kgd-band--paper .kgd-tedx-kicker { color: var(--kgd-gold-ink) !important; }
.kgd-tedx-kicker--tracked { letter-spacing: 0.04em !important; line-height: 1 !important; }

.kgd-tedx-h2 {
	font-family: var(--kgd-display) !important;
	font-weight: 700 !important;
	font-size: max(32px, calc(66 * var(--kgd-px))) !important;
	line-height: 1.12 !important;
	letter-spacing: -0.01em !important;
	color: inherit !important;
	text-wrap: balance;
}
.kgd-band--paper .kgd-tedx-h2 { color: var(--kgd-green) !important; }
/* the 56px gold headings ("What if rest…", "Meet Khaliah", "The work continues.") */
.kgd-tedx-h2--gold { font-size: max(30px, calc(55.6 * var(--kgd-px))) !important; line-height: 1.2 !important; color: var(--kgd-gold) !important; }
/* on paper the design's gold is ~1.9:1 — this deeper gold keeps the hue and clears 3:1 for large text */
.kgd-band--paper .kgd-tedx-h2--gold { color: #A9790A !important; }

.kgd-tedx-copy { font-size: max(17px, calc(24 * var(--kgd-px))) !important; line-height: 1.375 !important; }
.kgd-tedx-copy + .kgd-tedx-copy { margin-top: 1.375em !important; }

.kgd-tedx-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px max(18px, calc(60 * var(--kgd-px))) !important; }
.kgd-tedx-actions .kgd-btn .wp-block-button__link { font-size: max(16px, calc(28 * var(--kgd-px))) !important; min-width: calc(256 * var(--kgd-px)); }

/* --------------------------------------------------------------------------
 * Hero — black, gold type, stage photo bleeding off the right edge, the gold
 * squiggle (1305 x 300 design px, rotated 32deg) sweeping under the copy.
 * ------------------------------------------------------------------------ */
.kgd-tedx-hero { --kgd-head: 90px; padding: 0 !important; background-color: #000; color: var(--kgd-gold); }
.kgd-tedx-hero__stage {
	position: relative;
	max-width: 1440px;
	margin-inline: auto !important;
	min-height: calc(var(--kgd-head) + 994 * var(--kgd-px));
	padding: calc(var(--kgd-head) + 107 * var(--kgd-px)) var(--kgd-gutter) max(48px, calc(80 * var(--kgd-px))) calc(61 * var(--kgd-px)) !important;
}
.kgd-tedx-hero__photo {
	position: absolute !important;
	z-index: 0 !important;
	/* tedx-stage-profile.jpg (swapped 2026-10-22 at Khaliah's request): she stands at ~80% across the frame */
	left: calc(-40 * var(--kgd-px));
	top: calc(var(--kgd-head) - 40 * var(--kgd-px));
	width: calc(1500 * var(--kgd-px));
	margin: 0 !important;
}
.kgd-tedx-hero__photo img { display: block; width: 100%; height: auto; }
/* soften the seam where the photo's own black meets the band */
.kgd-tedx-hero__photo::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 62%; background: linear-gradient(90deg, #000 35%, rgba(0, 0, 0, 0.55) 70%, rgba(0, 0, 0, 0)); }
.kgd-tedx-hero__squiggle {
	position: absolute !important;
	z-index: 1 !important;
	left: calc(18 * var(--kgd-px));
	top: calc(var(--kgd-head) + 668 * var(--kgd-px));
	width: calc(1305 * var(--kgd-px));
	margin: 0 !important;
	transform: rotate(32deg);
	pointer-events: none;
}
.kgd-tedx-hero__squiggle img { display: block; width: 100%; height: auto; }
.kgd-tedx-hero__text { position: relative; z-index: 2; max-width: calc(980 * var(--kgd-px)); }
.kgd-tedx-hero__byline { font-size: max(15px, calc(24 * var(--kgd-px))) !important; line-height: 1.375 !important; color: var(--kgd-gold) !important; }
.kgd-tedx-hero__title {
	font-family: var(--kgd-display) !important;
	font-weight: 700 !important;
	font-size: max(52px, calc(118 * var(--kgd-px))) !important;
	line-height: 0.93 !important;
	color: var(--kgd-gold) !important;
	margin-top: max(16px, calc(32 * var(--kgd-px))) !important;
}
.kgd-tedx-hero__lede { font-size: max(17px, calc(24 * var(--kgd-px))) !important; line-height: 1.375 !important; color: var(--kgd-gold) !important; margin-top: max(14px, calc(20 * var(--kgd-px))) !important; max-width: 25em; }

/* --------------------------------------------------------------------------
 * The talk — green, giant faint TEDx watermark, framed click-to-play.
 * ------------------------------------------------------------------------ */
.kgd-tedx-talk { text-align: center; padding-block: max(56px, calc(82 * var(--kgd-px))) max(64px, calc(110 * var(--kgd-px))) !important; }
.kgd-tedx-talk__wm {
	position: absolute !important;
	z-index: 0 !important;
	left: calc(37 * var(--kgd-px));
	top: calc(-131 * var(--kgd-px));
	font-family: var(--kgd-sans);
	font-weight: 700;
	font-size: calc(642 * var(--kgd-px));
	line-height: calc(526 * var(--kgd-px));
	letter-spacing: -0.02em;
	white-space: nowrap;
	text-align: left;
	color: rgba(238, 186, 43, 0.06);
	pointer-events: none;
	user-select: none;
}
.kgd-tedx-talk .kgd-tedx-h2 { color: var(--kgd-paper) !important; }
.kgd-tedx-talk__player {
	width: min(100%, calc(863 * var(--kgd-px)));
	min-width: min(100%, 320px);
	aspect-ratio: 863 / 593;
	margin: max(32px, calc(62 * var(--kgd-px))) auto 0;
	border-radius: max(14px, calc(26 * var(--kgd-px)));
	box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}
.kgd-tedx-talk__player .kgd-video__play { width: max(64px, calc(160 * var(--kgd-px))); }
.kgd-tedx-talk__note { margin-top: max(24px, calc(34 * var(--kgd-px))) !important; }
.kgd-tedx-talk .kgd-tedx-actions { margin-top: max(24px, calc(44 * var(--kgd-px))) !important; gap: 16px max(18px, calc(96 * var(--kgd-px))) !important; }
.kgd-tedx-talk .kgd-tedx-actions .kgd-btn .wp-block-button__link { min-width: calc(319 * var(--kgd-px)); }

/* --------------------------------------------------------------------------
 * Behind the talk — paper, copy left, laughing cutout right.
 * ------------------------------------------------------------------------ */
.kgd-tedx-behind-band { padding: 0 !important; color: var(--kgd-green); }
.kgd-tedx-behind { position: relative; max-width: 1440px; margin-inline: auto !important; min-height: calc(663 * var(--kgd-px)); padding: max(48px, calc(41 * var(--kgd-px))) var(--kgd-gutter) max(48px, calc(56 * var(--kgd-px))) calc(85 * var(--kgd-px)) !important; }
.kgd-tedx-behind__text { position: relative; z-index: 1; max-width: calc(700 * var(--kgd-px)); min-width: min(100%, 520px); }
.kgd-tedx-behind .kgd-tedx-h2 { margin-bottom: max(14px, calc(24 * var(--kgd-px))) !important; }
.kgd-tedx-behind .kgd-tedx-copy + .kgd-tedx-copy { margin-top: 1em !important; }
.kgd-tedx-behind__cutout { position: absolute !important; z-index: 0 !important; left: calc(821 * var(--kgd-px)); bottom: calc(-80 * var(--kgd-px)); width: calc(582 * var(--kgd-px)); margin: 0 !important; }
.kgd-tedx-behind__cutout img { display: block; width: 100%; height: auto; }
/* the cutout is cropped flat at its right and bottom edges: fade both into the paper (Khaliah, 2026-10-23) */
.kgd-tedx-behind__cutout img {
	-webkit-mask-image: linear-gradient(90deg, #000 72%, transparent 98%), linear-gradient(180deg, #000 78%, transparent 100%);
	-webkit-mask-composite: source-in;
	mask-image: linear-gradient(90deg, #000 72%, transparent 98%), linear-gradient(180deg, #000 78%, transparent 100%);
	mask-composite: intersect;
}
.kgd-tedx-behind-band { overflow: hidden; }

/* --------------------------------------------------------------------------
 * The big idea — centred.
 * ------------------------------------------------------------------------ */
.kgd-tedx-idea { text-align: center; padding-block: max(48px, calc(27 * var(--kgd-px))) max(56px, calc(80 * var(--kgd-px))) !important; }
.kgd-tedx-idea__inner { max-width: calc(760 * var(--kgd-px)); min-width: min(100%, 320px); }
.kgd-tedx-idea .kgd-tedx-kicker { margin-bottom: max(8px, calc(10 * var(--kgd-px))) !important; }
.kgd-tedx-idea .kgd-tedx-h2 { max-width: 13em; margin: 0 auto max(18px, calc(22 * var(--kgd-px))) !important; }
.kgd-tedx-idea .kgd-tedx-copy { line-height: 1.375 !important; }
.kgd-tedx-idea .kgd-tedx-copy + .kgd-tedx-copy { margin-top: 1.375em !important; }

/* --------------------------------------------------------------------------
 * Meet the speaker — inset photo panel, the photo fading into green.
 * ------------------------------------------------------------------------ */
.kgd-tedx-panel-band { padding: 0 calc(37 * var(--kgd-px)) !important; }
.kgd-tedx-speaker {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	max-width: 1366px;
	margin-inline: auto !important;
	min-height: calc(762 * var(--kgd-px));
	display: flex !important;
	justify-content: flex-end;
	align-items: flex-start;
	padding: calc(75 * var(--kgd-px)) calc(56 * var(--kgd-px)) max(48px, calc(80 * var(--kgd-px))) !important;
}
.kgd-tedx-speaker__photo { position: absolute !important; z-index: -1 !important; inset: 0 24% 0 7%; margin: 0 !important; }
/* The photo's own edge sits right behind her back: start it in from the screen edge and dissolve that edge into the band. */
.kgd-tedx-speaker__photo::before { content: ""; position: absolute; z-index: 1; inset: 0 auto 0 0; width: 14%; background: linear-gradient(90deg, var(--kgd-green), rgba(18, 44, 33, 0)); }
.kgd-tedx-speaker__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 0% 50%; display: block; }
.kgd-tedx-speaker__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18, 44, 33, 0) 30%, rgba(18, 44, 33, 0.7) 66%, var(--kgd-green) 100%); }
.kgd-tedx-speaker__text { width: calc(720 * var(--kgd-px)); min-width: min(100%, 420px); text-align: right; }
.kgd-tedx-speaker .kgd-tedx-copy { max-width: calc(640 * var(--kgd-px)); min-width: min(100%, 400px); margin-left: auto !important; }
.kgd-tedx-speaker .kgd-tedx-h2 { white-space: nowrap; margin-bottom: max(10px, calc(16 * var(--kgd-px))) !important; }
.kgd-tedx-speaker__actions { justify-content: flex-end; margin-top: max(24px, calc(40 * var(--kgd-px))) !important; }
.kgd-tedx-speaker__actions .kgd-btn .wp-block-button__link { font-size: max(16px, calc(28 * var(--kgd-px))) !important; min-width: calc(319 * var(--kgd-px)); }

/* --------------------------------------------------------------------------
 * The work continues — three white cards.
 * ------------------------------------------------------------------------ */
.kgd-tedx-work { text-align: center; padding-block: max(56px, calc(27 * var(--kgd-px))) max(64px, calc(90 * var(--kgd-px))) !important; }
.kgd-tedx-work .kgd-tedx-kicker { margin-bottom: max(8px, calc(10 * var(--kgd-px))) !important; }
.kgd-tedx-work__lede { max-width: 38em; margin: max(10px, calc(16 * var(--kgd-px))) auto 0 !important; color: var(--kgd-green); }
.kgd-tedx-cards { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(37 * var(--kgd-px)); max-width: calc(1187 * var(--kgd-px)); margin: max(36px, calc(56 * var(--kgd-px))) auto 0 !important; text-align: left; }
.kgd-tedx-cards > * { margin-block: 0 !important; }
.kgd-tedx-card {
	position: relative;
	display: flex !important;
	flex-direction: column;
	background: #fff;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(18, 44, 33, 0.06), 0 14px 32px -20px rgba(18, 44, 33, 0.35);
	transition: transform 320ms var(--kgd-ease), box-shadow 320ms var(--kgd-ease);
}
.kgd-tedx-card:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(18, 44, 33, 0.06), 0 22px 40px -20px rgba(18, 44, 33, 0.45); }
.kgd-tedx-card:focus-within { outline: 3px solid var(--kgd-gold-ink); outline-offset: 3px; }
.kgd-tedx-card__media { margin: 0 !important; aspect-ratio: 371 / 247; overflow: hidden; }
.kgd-tedx-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 600ms var(--kgd-ease); }
.kgd-tedx-card:hover .kgd-tedx-card__media img { transform: scale(1.03); }
.kgd-tedx-card__body { display: flex !important; flex-direction: column; flex: 1; padding: max(18px, calc(30 * var(--kgd-px))) max(18px, calc(30 * var(--kgd-px))) max(20px, calc(32 * var(--kgd-px))) !important; }
.kgd-tedx-card__kicker { font-weight: 700 !important; font-size: max(11px, calc(13 * var(--kgd-px))) !important; line-height: 1.35 !important; text-transform: uppercase; color: var(--kgd-gold-ink) !important; }
.kgd-tedx-card__title { font-family: var(--kgd-display) !important; font-weight: 700 !important; font-size: max(21px, calc(25 * var(--kgd-px))) !important; line-height: 1.15 !important; color: var(--kgd-ink) !important; margin-top: max(6px, calc(8 * var(--kgd-px))) !important; }
.kgd-tedx-card__title sup { font-size: 0.45em; vertical-align: top; position: relative; top: 0.15em; line-height: 1; }
.kgd-tedx-card__title a { color: inherit !important; text-decoration: none !important; }
.kgd-tedx-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.kgd-tedx-card__text { font-size: max(15px, calc(16 * var(--kgd-px))) !important; line-height: 1.6 !important; color: #3d4540; margin-top: max(8px, calc(10 * var(--kgd-px))) !important; }
.kgd-tedx-card__cta { margin-top: auto !important; padding-top: max(16px, calc(26 * var(--kgd-px))); font-weight: 700 !important; font-size: max(12px, calc(12.5 * var(--kgd-px))) !important; letter-spacing: 0.08em; text-transform: uppercase; color: var(--kgd-ink) !important; }
.kgd-tedx-card__cta::after { content: " \2192"; display: inline-block; transition: transform 300ms var(--kgd-ease); }
.kgd-tedx-card:hover .kgd-tedx-card__cta::after { transform: translateX(4px); }

/* --------------------------------------------------------------------------
 * The room has spoken — crowd under a deep scrim, big Futura Bold quote.
 * ------------------------------------------------------------------------ */
.kgd-tedx-room { text-align: center; padding-block: max(56px, calc(51 * var(--kgd-px))) max(64px, calc(110 * var(--kgd-px))) !important; min-height: calc(768 * var(--kgd-px)); }
.kgd-tedx-room .kgd-band__scrim { background: rgba(12, 22, 16, 0.74); }
.kgd-tedx-room__quote { position: relative; margin: max(30px, calc(66 * var(--kgd-px))) 0 0 !important; }
.kgd-tedx-room__mark { position: absolute !important; left: calc(14 * var(--kgd-px)); top: calc(-32 * var(--kgd-px)); width: max(48px, calc(124 * var(--kgd-px))); margin: 0 !important; }
.kgd-tedx-room__mark img { display: block; width: 100%; height: auto; }
.kgd-tedx-room__text {
	position: relative;
	font-family: var(--kgd-sans) !important;
	font-weight: 700 !important;
	font-size: max(24px, calc(64 * var(--kgd-px))) !important;
	line-height: 1.03 !important;
	color: var(--kgd-paper) !important;
	max-width: calc(1010 * var(--kgd-px));
	min-width: min(100%, 300px);
	margin-inline: auto !important;
}

/* --------------------------------------------------------------------------
 * Closing ask
 * ------------------------------------------------------------------------ */
.kgd-tedx-ask { text-align: center; padding-block: max(56px, calc(48 * var(--kgd-px))) max(64px, calc(70 * var(--kgd-px))) !important; }
.kgd-tedx-ask .kgd-tedx-kicker { margin-bottom: max(18px, calc(44 * var(--kgd-px))) !important; }
.kgd-tedx-ask .kgd-tedx-h2 { line-height: 1.04 !important; max-width: 13em; margin-inline: auto !important; }
.kgd-tedx-ask__lede { max-width: 40em; margin: max(18px, calc(32 * var(--kgd-px))) auto 0 !important; }
.kgd-tedx-ask .kgd-tedx-actions { margin-top: max(28px, calc(54 * var(--kgd-px))) !important; }

/* --------------------------------------------------------------------------
 * Tablet / phone
 * ------------------------------------------------------------------------ */
@media (max-width: 900px) {
	.kgd-tedx-h2 br { display: none; }
	.kgd-tedx-hero__stage { display: flex; flex-direction: column; min-height: 0; padding: calc(var(--kgd-head) + 32px) var(--kgd-gutter) 0 !important; }
	.kgd-tedx-hero__text { max-width: none; }
	.kgd-tedx-hero__squiggle { display: none; }
	.kgd-tedx-hero__photo { order: 2; position: relative !important; left: auto; top: auto; width: calc(100% + 2 * var(--kgd-gutter)); max-width: none; margin: 32px calc(-1 * var(--kgd-gutter)) 0 !important; aspect-ratio: 4 / 3; overflow: hidden; }
	.kgd-tedx-hero__photo img { height: 100%; object-fit: cover; object-position: 82% 40%; }
	.kgd-tedx-hero__photo::before { display: none; }
	.kgd-tedx-talk__wm { font-size: 260px; line-height: 220px; top: -40px; }
	.kgd-tedx-behind { display: flex; flex-direction: column; min-height: 0; padding: 56px var(--kgd-gutter) 0 !important; }
	.kgd-tedx-behind__text { max-width: none; min-width: 0; }
	.kgd-tedx-behind__cutout { order: 2; position: relative !important; left: auto; bottom: auto; width: min(75%, 320px); margin: 24px auto 0 !important; }
	.kgd-tedx-panel-band { padding: 0 !important; }
	.kgd-tedx-speaker { flex-direction: column; justify-content: flex-start; min-height: 0; padding: 0 var(--kgd-gutter) 56px !important; }
	.kgd-tedx-speaker__photo { position: relative !important; inset: auto; z-index: 0 !important; margin: 0 calc(-1 * var(--kgd-gutter)) 28px !important; aspect-ratio: 4 / 3; }
	.kgd-tedx-speaker__photo::after { background: linear-gradient(180deg, rgba(18, 44, 33, 0) 55%, var(--kgd-green) 100%); }
	.kgd-tedx-speaker__photo::before { display: none; }
	.kgd-tedx-speaker__text { width: auto; min-width: 0; text-align: left; }
	.kgd-tedx-speaker .kgd-tedx-h2 { white-space: normal; }
	.kgd-tedx-speaker__actions { justify-content: flex-start; }
	.kgd-tedx-cards { grid-template-columns: 1fr; max-width: 460px; gap: 20px; }
	.kgd-tedx-room { min-height: 0; }
	.kgd-tedx-room__mark { left: 0; top: -36px; }
	.kgd-tedx-room__text { padding-top: 18px; }
}
