/*
 * Course pages (START and BOOST share this file).
 *
 * Loaded by page-tecaj-start.php / page-tecaj-boost.php on top of base.css,
 * which provides the tokens, the nav/footer chrome and the .g-stats strip used
 * in the hero.
 *
 * The source designs were gradient-only. Photography was added afterwards for
 * the hero and the cross-link card, layered *under* those gradients so they act
 * as the scrim — which is what keeps the type legible over a light image.
 *
 * Breakpoints:
 *   1024px  the split sections collapse to one column, curriculum to one list
 *    700px  phone layout
 */

.g-tecaj-eyebrow {
	font-size: 10px;
	letter-spacing: 0.3em;
	text-transform: lowercase;
	color: var(--g-gold);
}

/* --------------------------------------------------------------- hero ---- */

.g-tecaj-hero {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 76svh;
	box-sizing: border-box;
	padding: 180px var(--g-gutter) 54px;
	border-bottom: 1px solid var(--g-line-mid);
}

.g-tecaj-hero__media {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

/*
 * Taller than its frame and pulled up by half the overflow, so the parallax
 * script has room to move it without exposing an edge.
 */
.g-tecaj-hero__media img {
	position: absolute;
	inset: -12% 0;
	width: 100%;
	height: 124%;
	object-fit: cover;
	filter: saturate(0.7);
	will-change: transform;
}

/* Sits above the photo — the gradients are the scrim that keeps type legible. */
.g-tecaj-hero__glow {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.g-tecaj-hero__glow::before,
.g-tecaj-hero__glow::after {
	content: "";
	position: absolute;
	inset: 0;
}

.g-tecaj-hero__glow::before {
	background: radial-gradient(110% 90% at 72% 8%, rgba(var(--g-gold-rgb), 0.18), rgba(var(--g-ink-rgb), 0) 62%);
}

/* Three stops: washed top for the nav, a clear middle, washed floor for the copy. */
.g-tecaj-hero__glow::after {
	background: linear-gradient(
		180deg,
		rgba(var(--g-ink-rgb), 0.72),
		rgba(var(--g-ink-rgb), 0.35) 45%,
		rgba(var(--g-ink-rgb), 0.96)
	);
}

.g-tecaj-hero__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 26px;
}

.g-tecaj-hero__eyebrow {
	font-size: 11px;
	letter-spacing: 0.32em;
	text-transform: lowercase;
	color: var(--g-gold);
}

.g-tecaj-hero__title {
	font-family: var(--g-serif);
	font-weight: 400;
	font-size: clamp(56px, 10vw, 168px);
	line-height: 0.88;
	letter-spacing: -0.02em;
	text-transform: lowercase;
}

.g-tecaj-hero__foot {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 40px;
	flex-wrap: wrap;
}

.g-tecaj-hero__text {
	max-width: 520px;
	font-size: 16px;
	line-height: 1.95;
	color: var(--g-text-dim);
	text-wrap: pretty;
}

/* -------------------------------------------------------------- intro ---- */

.g-tecaj-intro {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 70px;
	padding: 100px var(--g-gutter) 60px;
	align-items: start;
}

.g-tecaj-intro__head {
	display: flex;
	flex-direction: column;
	gap: 26px;
}

.g-tecaj-intro__title {
	font-family: var(--g-serif);
	font-weight: 400;
	font-size: clamp(30px, 3.6vw, 56px);
	line-height: 1.06;
	text-transform: lowercase;
}

.g-tecaj-intro__body {
	display: flex;
	flex-direction: column;
	gap: 22px;
	max-width: 720px;
}

.g-tecaj-intro__text {
	font-size: 16px;
	line-height: 2.05;
	color: var(--g-text-muted);
	text-wrap: pretty;
}

/* ----------------------------------------------------------- included ---- */

.g-tecaj-included {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1px;
	background: var(--g-line);
	border-top: 1px solid var(--g-line);
	border-bottom: 1px solid var(--g-line);
}

.g-tecaj-included__cell {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 44px var(--g-gutter);
	background: var(--g-ink);
}

.g-tecaj-included__title {
	font-family: var(--g-serif);
	font-size: 32px;
	line-height: 1.15;
	text-transform: lowercase;
}

/* ------------------------------------------------- curriculum + extras --- */

/* Narrow heading column, wide list — used twice. */
.g-tecaj-split {
	display: grid;
	grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
	gap: 70px;
	padding: 100px var(--g-gutter);
}

.g-tecaj-split--tight {
	padding-top: 0;
	padding-bottom: 100px;
}

.g-tecaj-split__head {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.g-tecaj-split__title {
	font-family: var(--g-serif);
	font-weight: 400;
	font-size: clamp(28px, 3.2vw, 46px);
	line-height: 1.04;
	text-transform: lowercase;
}

.g-tecaj-split__title--small {
	font-size: clamp(24px, 2.6vw, 36px);
}

.g-tecaj-split__count {
	font-size: 11px;
	letter-spacing: 0.24em;
	text-transform: lowercase;
	color: var(--g-text-faint);
}

.g-tecaj-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

/*
 * Two columns that fill top-to-bottom in source order. align-content:start
 * stops short lists stretching their rows to fill the grid.
 */
.g-tecaj-list--split {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 60px;
	align-content: start;
}

.g-tecaj-list--narrow {
	display: flex;
	flex-direction: column;
	max-width: 760px;
	border-top: 1px solid var(--g-line-mid);
}

.g-tecaj-list__row {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr);
	gap: 16px;
	align-items: baseline;
	padding: 20px 0;
	border-bottom: 1px solid var(--g-line-mid);
}

.g-tecaj-list--narrow .g-tecaj-list__row {
	padding: 18px 0;
}

.g-tecaj-list__no {
	font-size: 10px;
	letter-spacing: 0.2em;
	color: var(--g-text-faint);
}

.g-tecaj-list__text {
	font-size: 15px;
	line-height: 1.6;
	color: var(--g-text-muted);
}

/* -------------------------------------------------------------- notes ---- */

.g-tecaj-notes {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 1px;
	background: var(--g-line);
	border-top: 1px solid var(--g-line);
}

.g-tecaj-note {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 46px var(--g-gutter);
	background: var(--g-ink);
}

.g-tecaj-note__text {
	font-size: 14px;
	line-height: 1.95;
	color: var(--g-text-muted);
	text-wrap: pretty;
}

/* ------------------------------------------------------------- signup ---- */

.g-tecaj-signup {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 70px;
	padding: 110px var(--g-gutter);
	border-top: 1px solid var(--g-line);
}

.g-tecaj-signup__intro {
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.g-tecaj-signup__label {
	font-size: 11px;
	letter-spacing: 0.3em;
	text-transform: lowercase;
	color: var(--g-gold);
}

.g-tecaj-signup__title {
	font-family: var(--g-serif);
	font-weight: 400;
	font-size: clamp(36px, 5vw, 84px);
	line-height: 0.96;
	text-transform: lowercase;
}

.g-tecaj-signup__text {
	max-width: 420px;
	font-size: 15px;
	line-height: 1.95;
	color: var(--g-text-muted);
	text-wrap: pretty;
}

.g-tecaj-signup__contact {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 6px;
	font-size: 13px;
	color: var(--g-text-soft);
}

/* --------------------------------------------------------------- form ---- */

.g-tecaj-form__wrap {
	max-width: 560px;
}

.g-tecaj-form {
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.g-tecaj-form__pair {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 22px;
}

/* Off-screen rather than display:none — some bots skip hidden inputs. */
.g-tecaj-form__trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.g-tecaj-field {
	display: flex;
	flex-direction: column;
	gap: 9px;
	font-size: 10px;
	letter-spacing: 0.24em;
	text-transform: lowercase;
	color: var(--g-text-soft);
}

.g-tecaj-field input,
.g-tecaj-field textarea {
	background: transparent;
	border: 0;
	border-bottom: 1px solid rgba(var(--g-bone-rgb), 0.22);
	padding: 12px 0;
	/* 16px keeps iOS from zooming the viewport on focus. */
	font-family: var(--g-sans);
	font-size: 16px;
	font-weight: 300;
	color: var(--g-bone);
	transition: border-color 0.4s ease;
}

.g-tecaj-field textarea {
	resize: vertical;
}

.g-tecaj-field input::placeholder,
.g-tecaj-field textarea::placeholder {
	color: var(--g-text-quiet);
}

.g-tecaj-field input:focus,
.g-tecaj-field textarea:focus {
	border-bottom-color: var(--g-gold);
	outline: none;
}

/* The bottom border already shows focus; a full ring would double up. */
.g-tecaj-field input:focus-visible,
.g-tecaj-field textarea:focus-visible {
	outline: none;
}

.g-tecaj-form__submit {
	align-self: flex-start;
	margin-top: 8px;
	padding: 18px 44px;
	border: 0;
	border-radius: 999px;
	background: var(--g-bone);
	color: var(--g-ink);
	font-family: var(--g-sans);
	font-size: 11px;
	letter-spacing: 0.24em;
	text-transform: lowercase;
	cursor: pointer;
	transition: background 0.4s ease;
}

.g-tecaj-form__submit:hover {
	background: var(--g-gold);
}

.g-tecaj-form__notice {
	margin-bottom: 22px;
	padding: 16px 20px;
	border-left: 2px solid var(--g-gold);
	background: var(--g-panel);
	font-size: 14px;
	line-height: 1.8;
	color: var(--g-text-dim);
}

.g-tecaj-form__notice--error {
	border-left-color: #a4503f;
}

/* ---------------------------------------------------------- next card ---- */

.g-tecaj-next {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 30px;
	min-height: 340px;
	padding: 50px var(--g-gutter);
	overflow: hidden;
	border-top: 1px solid var(--g-line);
	/* Shows through if the photo is missing or still loading. */
	background: linear-gradient(160deg, var(--g-surface), var(--g-ink));
}

/* Held well back so the type over it stays readable, as on the home page cards. */
.g-tecaj-next__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* Lower than the dark scheme wanted: on beige the photo lightens rather
	 * than darkens, and the type over it is dark. */
	opacity: 0.34;
	filter: saturate(0.7);
	transition: transform 1.5s var(--g-ease), opacity 0.8s ease;
}

.g-tecaj-next:hover .g-tecaj-next__img,
.g-tecaj-next:focus-visible .g-tecaj-next__img {
	transform: scale(1.06);
	opacity: 0.46;
}

/* Translucent now that a photo sits behind it, not an opaque panel. */
.g-tecaj-next__glow {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(100% 120% at 20% 100%, rgba(var(--g-gold-rgb), 0.18), rgba(var(--g-ink-rgb), 0) 60%),
		linear-gradient(160deg, rgba(var(--g-ink-rgb), 0.5), rgba(var(--g-ink-rgb), 0.82));
}

.g-tecaj-next__body {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.g-tecaj-next__eyebrow {
	font-size: 10px;
	letter-spacing: 0.3em;
	text-transform: lowercase;
	color: var(--g-gold);
}

.g-tecaj-next__title {
	font-family: var(--g-serif);
	font-size: clamp(36px, 5vw, 76px);
	line-height: 1;
	text-transform: lowercase;
}

.g-tecaj-next__cta {
	position: relative;
	padding-bottom: 5px;
	border-bottom: 1px solid var(--g-line-strong);
	font-size: 11px;
	letter-spacing: 0.24em;
	text-transform: lowercase;
	color: var(--g-text-muted);
	white-space: nowrap;
}

/* -------------------------------------------------------- ≤1024px ------- */

@media (max-width: 1024px) {
	.g-tecaj-intro,
	.g-tecaj-split,
	.g-tecaj-signup {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
	}

	.g-tecaj-included {
		grid-template-columns: minmax(0, 1fr);
	}

	/* Two columns of one-line items become unreadably narrow here. */
	.g-tecaj-list--split {
		grid-template-columns: minmax(0, 1fr);
	}

	.g-tecaj-form__wrap {
		max-width: none;
	}
}

/* --------------------------------------------------------- ≤700px ------- */

@media (max-width: 700px) {
	.g-tecaj-hero {
		min-height: 0;
		padding: 130px var(--g-gutter) 40px;
	}

	.g-tecaj-hero__foot {
		gap: 26px;
	}

	.g-tecaj-hero__text {
		max-width: none;
	}

	.g-tecaj-intro {
		padding: 60px var(--g-gutter) 40px;
	}

	.g-tecaj-included__cell {
		padding: 30px var(--g-gutter);
	}

	.g-tecaj-included__title {
		font-size: 26px;
	}

	.g-tecaj-split {
		padding: 60px var(--g-gutter);
	}

	.g-tecaj-split--tight {
		padding-top: 0;
		padding-bottom: 60px;
	}

	.g-tecaj-note {
		padding: 32px var(--g-gutter);
	}

	.g-tecaj-signup {
		padding: 70px var(--g-gutter);
	}

	.g-tecaj-form__pair {
		grid-template-columns: minmax(0, 1fr);
	}

	.g-tecaj-next {
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
		min-height: 0;
		padding: 40px var(--g-gutter) 90px;
	}

	.g-tecaj-next__title {
		font-size: 40px;
	}
}
