/**
 * Homepage 09: Meet the founder (dark band).
 * Desktop: design A + the gate-3 photo frame (B) and buttons (T9).
 * Phone: design C "Three Chapters".
 */

.gs-home .gh-09 { background: var(--page-bg); }

.gs-home .gh-09 .s09a-head { display: flex; flex-direction: column; align-items: flex-start; }

.gs-home .gh-09 .s09a-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border-radius: 100px;
	font-size: 14px;
	font-weight: 600;
	line-height: 20px;
	white-space: nowrap;
	text-decoration: none;
}

.gs-home .gh-09 .s09a-chip svg { flex: none; width: 16px; height: 16px; transition: transform .2s ease; }
.gs-home .gh-09 .s09a-chip:hover svg { transform: translateX(2px); }
.gs-home .gh-09 .s09a-chip:focus-visible { border-radius: 100px; }

/* ================= Desktop ================= */

@media (min-width: 1024px) {
	.gs-home .gh-09 {
		min-height: 880px;
		display: flex;
		flex-direction: column;
		justify-content: center;
		padding: 160px 0;
	}

	.gs-home .gh-09 .s09a-grid {
		display: grid;
		grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
		grid-template-rows: auto auto;
		column-gap: clamp(56px, 6.67vw, 96px);
		align-items: stretch;
	}

	.gs-home .gh-09 .s09a-who {
		grid-column: 1;
		grid-row: 1 / span 2;
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		justify-content: center;
	}

	/* The whole 1024x942 photo in the kit's tilted portrait frame. */
	.gs-home .gh-09 .s09a-photo {
		box-sizing: content-box;
		width: calc(100% - 22px);
		height: auto;
		aspect-ratio: 1024 / 942;
		padding: 10px;
		overflow: hidden;
		background: var(--card-bg);
		border: 1px solid var(--outline-high-em);
		border-radius: 20px;
		box-shadow: var(--elevation-e4);
		transform: rotate(-2.5deg);
	}

	.gs-home .gh-09 .s09a-photo img {
		display: block;
		width: 100%;
		height: 100%;
		object-fit: cover;
		object-position: 50% 50%;
		border-radius: 12px;
	}

	.gs-home .gh-09 .s09a-head { grid-column: 2; grid-row: 1; max-width: 620px; }
	.gs-home .gh-09 .s09a-h { margin-top: 18px; font-size: 44px; line-height: 1.15; }

	.gs-home .gh-09 .s09a-body {
		grid-column: 2;
		grid-row: 2;
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		max-width: 620px;
	}

	.gs-home .gh-09 .s09a-note { margin-top: 28px; display: flex; flex-direction: column; gap: 18px; max-width: 600px; }
	.gs-home .gh-09 .s09a-note p { font-size: 16px; line-height: 26px; color: var(--text-med-em); text-wrap: pretty; }

	.gs-home .gh-09 .s09a-hr {
		width: 100%;
		max-width: 600px;
		height: 1px;
		margin: 36px 0 0;
		border: 0;
		background: var(--outline-high-em);
	}

	.gs-home .gh-09 .s09a-links { display: flex; align-items: center; gap: 12px; margin-top: 28px; }

	.gs-home .gh-09 .s09a-chip {
		padding: 8px 16px 8px 18px;
		border: 1px solid var(--outline-high-em);
		color: var(--text-med-em);
		transition: background-color .2s ease, border-color .2s ease, color .2s ease;
	}

	.gs-home .gh-09 .s09a-chip:hover { border-color: var(--text-med-em); color: var(--text-high-em); }
	.gs-home .gh-09 .s09a-chip svg { color: currentColor; }

	/* T9: "Talk to Mike" is a quiet raised button with the only tan accent. */
	.gs-home .gh-09 .s09a-chip-fill { background: var(--card-bg); border-color: var(--outline-high-em); color: var(--text-high-em); }
	.gs-home .gh-09 .s09a-chip-fill svg { color: var(--brand-tan); }
	.gs-home .gh-09 .s09a-chip-fill:hover { background: var(--surface-foreground); border-color: var(--text-med-em); color: var(--text-high-em); }
}

/* ================= Phone (and tablet) ================= */

@media (max-width: 1023px) {
	.gs-home .gh-09 { padding: 112px 0; }

	.gs-home .gh-09 .w {
		box-sizing: border-box;
		width: 100%;
		max-width: 600px;
		margin: 0 auto;
		padding: 0 24px;
	}

	.gs-home .gh-09 .s09a-h { margin-top: 16px; font-size: 32px; line-height: 1.15; }

	.gs-home .gh-09 .s09a-bar { display: flex; align-items: center; gap: 6px; margin-top: 24px; }

	.gs-home .gh-09 .s09a-seg {
		flex: 1 1 0;
		min-width: 0;
		height: 44px;
		margin: 0;
		padding: 0;
		border: 0;
		background: none;
		display: flex;
		align-items: center;
		cursor: pointer;
		-webkit-tap-highlight-color: transparent;
	}

	.gs-home .gh-09 .s09a-seg-t { position: relative; display: block; width: 100%; height: 4px; border-radius: 4px; background: var(--outline-low-em); overflow: hidden; transition: height .25s cubic-bezier(.32, .72, .33, 1); }
	.gs-home .gh-09 .s09a-seg-f { position: absolute; inset: 0; border-radius: inherit; background: var(--brand-primary-main); transform-origin: 0 50%; transform: scaleX(var(--f, 0)); }
	.gs-home .gh-09 .s09a-seg:first-child .s09a-seg-f { --f: 1; }
	.gs-home .gh-09 .s09a-seg[aria-selected="true"] .s09a-seg-f { background: #d2904d; }
	.gs-home .gh-09 .s09a-seg[aria-selected="true"] .s09a-seg-t { height: 6px; }

	.gs-home .gh-09 .s09a-seg-star { flex: 0 0 44px; justify-content: center; color: var(--outline-high-em); transition: color .3s ease; }
	.gs-home .gh-09 .s09a-seg-star:hover,
	.gs-home .gh-09 .s09a-seg-star:focus { color: var(--outline-high-em); background: none; }
	.gs-home .gh-09 .s09a-seg-star svg { display: block; width: 20px; height: 20px; fill: currentColor; fill-opacity: 0; transition: fill-opacity .3s ease, transform .35s cubic-bezier(.32, .72, .33, 1); }
	.gs-home .gh-09 .s09a-seg-star[data-lit],
	.gs-home .gh-09 .s09a-seg-star[data-lit]:hover,
	.gs-home .gh-09 .s09a-seg-star[data-lit]:focus { color: #d2904d; }
	.gs-home .gh-09 .s09a-seg-star[data-lit] svg { fill-opacity: 1; transform: rotate(-12deg) scale(1.08); }
	.gs-home .gh-09 .s09a-seg:focus-visible { outline-offset: 0; border-radius: 8px; }

	.gs-home .gh-09 .s09a-meta { display: flex; align-items: center; gap: 10px; min-height: 28px; margin-top: 2px; }
	.gs-home .gh-09 .s09a-num { display: inline-flex; align-items: center; font-family: var(--font-display); font-size: 15px; line-height: 20px; letter-spacing: .02em; color: #d2904d; }
	.gs-home .gh-09 .s09a-num svg { display: none; width: 16px; height: 16px; fill: currentColor; }
	.gs-home .gh-09 .s09a-meta[data-star="true"] .s09a-num svg { display: block; }
	.gs-home .gh-09 .s09a-ttl { display: inline-block; font-size: 16px; font-weight: 600; line-height: 22px; color: var(--text-high-em); }
	.gs-home .gh-09 .s09a-cnt { margin-left: auto; font-size: 12px; font-weight: 600; line-height: 16px; letter-spacing: .12em; color: var(--text-low-em); font-variant-numeric: tabular-nums; }

	.gs-home .gh-09 .s09a-stage { position: relative; margin-top: 12px; }

	.gs-home .gh-09 .s09a-track {
		display: flex;
		align-items: stretch;
		gap: 12px;
		margin: -18px -24px;
		padding: 18px 24px;
		overflow-x: auto;
		overflow-y: hidden;
		scroll-snap-type: x mandatory;
		scroll-padding: 0 24px;
		overscroll-behavior-x: contain;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
		-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
		mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
	}

	.gs-home .gh-09 .s09a-track::-webkit-scrollbar { display: none; }
	.gs-home .gh-09[data-drag] .s09a-track { cursor: grabbing; -webkit-user-select: none; user-select: none; }

	.gs-home .gh-09 .s09a-card {
		position: relative;
		flex: 0 0 100%;
		min-width: 0;
		min-height: 520px;
		display: flex;
		flex-direction: column;
		padding: 22px;
		border: 1px solid var(--outline-low-em);
		border-radius: 24px;
		background: var(--surface-foreground);
		box-shadow: 0 18px 32px -14px rgba(0, 0, 0, .6);
		scroll-snap-align: start;
		scroll-snap-stop: always;
		transform-origin: 50% 50%;
	}

	.gs-home .gh-09 .s09a-slot { flex: none; width: var(--w); }

	.gs-home .gh-09 .s09a-pol {
		box-sizing: border-box;
		width: var(--w);
		padding: calc(var(--w) * .035);
		overflow: hidden;
		background: var(--card-bg);
		border: 1px solid var(--outline-high-em);
		border-radius: calc(var(--w) * .078);
		box-shadow: 0 18px 32px -8px rgba(0, 0, 0, .6);
		transform: rotate(var(--r, 0deg));
	}

	.gs-home .gh-09 .s09a-pol img {
		display: block;
		width: 100%;
		max-width: none;
		height: auto;
		aspect-ratio: 1024 / 942;
		object-fit: cover;
		object-position: 50% 50%;
		border-radius: calc(var(--w) * .048);
		-webkit-user-drag: none;
	}

	.gs-home .gh-09 .s09a-slot-big { --w: 230px; --r: -3deg; align-self: center; margin-top: 6px; }
	.gs-home .gh-09 .s09a-slot-st2 { --w: 124px; --r: 6deg; margin: 4px 4px 0 0; }
	.gs-home .gh-09 .s09a-slot-st3 { --w: 124px; --r: -5deg; margin: 4px 4px 0 0; }
	.gs-home .gh-09 .s09a-slot-av { --w: 150px; --r: -2deg; align-self: flex-start; margin: 8px 0 0 4px; }

	/* The travelling photo (JS places it between the slots while motion is allowed). */
	.gs-home .gh-09 .s09a-float { position: absolute; left: 0; top: 0; z-index: 3; display: none; pointer-events: none; transform-origin: 50% 50%; opacity: 0; }
	.gs-home .gh-09 .s09a-float .s09a-pol { --w: 230px; --r: 0deg; }
	.gs-home .gh-09[data-live] .s09a-float { display: block; }
	.gs-home .gh-09[data-live] .s09a-float[data-placed] { opacity: 1; }
	.gs-home .gh-09[data-live] .s09a-slot .s09a-pol { opacity: 0; }

	.gs-home .gh-09 .s09a-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
	.gs-home .gh-09 .s09a-n { margin-top: -4px; font-family: var(--font-display); font-size: 84px; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--outline-high-em); letter-spacing: .01em; -webkit-user-select: none; user-select: none; }

	.gs-home .gh-09 .s09a-copy { margin-top: auto; padding-top: 22px; }
	.gs-home .gh-09 .s09a-copy p { margin: 0; font-size: 14px; line-height: 23px; color: var(--text-med-em); text-wrap: pretty; }
	.gs-home .gh-09 .s09a-lead { display: block; margin-bottom: 10px; font-size: 18px; font-weight: 600; line-height: 26px; letter-spacing: -.005em; color: var(--text-high-em); text-wrap: pretty; }
	.gs-home .gh-09 .s09a-top + .s09a-copy .s09a-lead { font-size: 20px; line-height: 28px; margin-bottom: 12px; }
	.gs-home .gh-09 .s09a-q { color: var(--text-high-em); }
	.gs-home .gh-09 .s09a-yr,
	.gs-home .gh-09 .s09a-fx { font-weight: inherit; color: inherit; }
	.gs-home .gh-09 .s09a-copy p > .s09a-lead:only-child { margin-bottom: 0; }

	.gs-home .gh-09 .s09a-end { align-items: flex-start; text-align: left; }
	.gs-home .gh-09 .s09a-close { margin: 22px 0 0; font-size: 18px; font-weight: 500; line-height: 27px; color: var(--text-high-em); text-wrap: pretty; }

	.gs-home .gh-09 .s09a-links { display: flex; flex-direction: column; align-items: stretch; gap: 10px; width: 100%; margin-top: auto; padding-top: 24px; }

	.gs-home .gh-09 .s09a-chip {
		box-sizing: border-box;
		justify-content: center;
		width: 100%;
		min-height: 48px;
		padding: 12px;
		border: 1px solid var(--outline-high-em);
		color: var(--text-med-em);
		transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .45s cubic-bezier(.32, .72, .33, 1), opacity .45s ease;
	}

	.gs-home .gh-09 .s09a-chip:hover { border-color: var(--text-med-em); color: var(--text-high-em); }
	.gs-home .gh-09 .s09a-chip svg { color: currentColor; }
	.gs-home .gh-09 .s09a-chip-fill { background: var(--card-bg); border-color: var(--outline-high-em); color: var(--text-high-em); }
	.gs-home .gh-09 .s09a-chip-fill svg { color: var(--brand-tan); }
	.gs-home .gh-09 .s09a-chip-fill:hover { background: var(--card-bg); border-color: var(--text-med-em); color: var(--text-high-em); }
	.gs-home .gh-09[data-live] .s09a-end:not([data-on]) .s09a-chip { opacity: 0; transform: translateY(12px); }
	.gs-home .gh-09[data-live] .s09a-end[data-on] .s09a-chip + .s09a-chip { transition-delay: 0s, 0s, 0s, .08s, .08s; }

	.gs-home .gh-09 .s09a-nav { display: flex; align-items: center; gap: 12px; margin-top: 18px; }

	.gs-home .gh-09 .s09a-back {
		flex: none;
		display: grid;
		place-items: center;
		width: 48px;
		height: 48px;
		margin: 0;
		padding: 0;
		border: 1px solid var(--outline-high-em);
		border-radius: 50%;
		background: none;
		color: var(--text-high-em);
		cursor: pointer;
		transition: opacity .25s ease, border-color .2s ease;
	}

	.gs-home .gh-09 .s09a-back svg,
	.gs-home .gh-09 .s09a-next svg { width: 18px; height: 18px; }
	.gs-home .gh-09 .s09a-back:hover { border-color: var(--text-med-em); background: none; color: var(--text-high-em); }
	.gs-home .gh-09 .s09a-back[aria-disabled="true"] { opacity: .35; cursor: default; }
	.gs-home .gh-09 .s09a-back[aria-disabled="true"]:hover { border-color: var(--outline-high-em); }
	.gs-home .gh-09 .s09a-back:focus-visible { border-radius: 50%; }

	.gs-home .gh-09 .s09a-hint { flex: 1 1 auto; min-width: 0; font-size: 12px; line-height: 16px; text-align: center; color: var(--text-low-em); transition: opacity .3s ease; }
	.gs-home .gh-09 .s09a-hint-off { opacity: 0; }

	.gs-home .gh-09 .s09a-next {
		flex: none;
		display: inline-flex;
		align-items: center;
		gap: 8px;
		min-height: 48px;
		margin: 0;
		padding: 12px 18px 12px 22px;
		border: 1px solid var(--outline-high-em);
		border-radius: 100px;
		background: none;
		color: var(--text-high-em);
		font-family: inherit;
		font-size: 14px;
		font-weight: 600;
		line-height: 20px;
		white-space: nowrap;
		cursor: pointer;
		transition: border-color .2s ease;
	}

	.gs-home .gh-09 .s09a-next:hover { border-color: var(--text-med-em); background: none; color: var(--text-high-em); }
	.gs-home .gh-09 .s09a-next svg { color: var(--brand-tan); transition: transform .2s ease; }
	.gs-home .gh-09 .s09a-next:hover svg.s09a-ar { transform: translateX(2px); }
	.gs-home .gh-09 .s09a-next .s09a-rp { display: none; }
	.gs-home .gh-09 .s09a-next[data-end="true"] .s09a-ar { display: none; }
	.gs-home .gh-09 .s09a-next[data-end="true"] .s09a-rp { display: block; }
	.gs-home .gh-09 .s09a-next:focus-visible { border-radius: 100px; }

	/* Without JS: the chapters stack in reading order; the controls are dropped. */
	html:not(.gh-js) .gs-home .gh-09 :is(.s09a-bar, .s09a-meta, .s09a-nav, .s09a-float) { display: none; }

	html:not(.gh-js) .gs-home .gh-09 .s09a-stage { margin-top: 24px; }

	html:not(.gh-js) .gs-home .gh-09 .s09a-track {
		flex-direction: column;
		gap: 16px;
		margin: 0;
		padding: 0;
		overflow: visible;
		-webkit-mask-image: none;
		mask-image: none;
	}

	html:not(.gh-js) .gs-home .gh-09 .s09a-card { flex: none; min-height: 0; }
}

@media (max-width: 1023px) and (hover: hover) and (pointer: fine) {
	.gs-home .gh-09 .s09a-track { cursor: grab; }
}

@media (max-width: 1023px) and (prefers-reduced-motion: reduce) {
	.gs-home .gh-09 .s09a-track { scroll-behavior: auto; }
	.gs-home .gh-09 .s09a-seg-star[data-lit] svg { transform: none; }
}
