/* ==========================================================================
   Company and test-bank pages (site/templates/pages/_company.php):
   download packs, the paper-stack hero, call-or-text card, office map,
   checks, video posters, the partners picture. Tokens from site.css only,
   so light and dark both follow.
   ========================================================================== */

.t1 .t1-co-ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ── Hero picture: a fanned stack of papers ─────────────────────────────── */

.t1 .t1-co-hero .t1-hero__visual { display: grid; place-items: center; }
.t1 .t1-co-sheets {
	position: relative; width: min(100%, 380px); aspect-ratio: 1;
	margin: 12px auto 24px;
}
.t1 .t1-co-sheet {
	position: absolute; inset: 6% 14% 6% 14%;
	display: flex; flex-direction: column; gap: 9px;
	padding: 22px 22px 20px;
	background: var(--t1-surface); border: 1px solid var(--t1-line);
	border-radius: 16px; box-shadow: var(--t1-shadow-lift);
	transform-origin: 50% 110%;
	transform: rotate(calc((var(--t1-i) - 1) * 9deg)) translateX(calc((var(--t1-i) - 1) * 26px));
	transition: transform .7s var(--t1-ease);
	z-index: calc(3 - var(--t1-i));
}
.t1 .t1-co-sheet:nth-child(2) { z-index: 3; }
.t1 .t1-co-sheet i {
	display: block; height: 7px; border-radius: 4px; background: var(--t1-line);
}
.t1 .t1-co-sheet i:nth-of-type(1) { width: 92%; }
.t1 .t1-co-sheet i:nth-of-type(2) { width: 78%; }
.t1 .t1-co-sheet i:nth-of-type(3) { width: 86%; }
.t1 .t1-co-sheet i:nth-of-type(4) { width: 60%; }
.t1 .t1-co-sheet i:nth-of-type(5) { width: 72%; }
.t1 .t1-co-sheet__tag {
	align-self: flex-end; padding: 3px 9px; border-radius: 999px;
	background: var(--t1-rose-press); color: #fff;
	font-family: var(--t1-font-head); font-size: .6875rem; font-weight: 700; letter-spacing: .08em;
}
.t1 .t1-co-sheet__code {
	margin: 2px 0 8px;
	font-family: var(--t1-font-head); font-weight: 600; line-height: 1;
	font-size: clamp(2.25rem, 1.6rem + 2vw, 3.25rem); letter-spacing: .02em;
	color: transparent; -webkit-text-stroke: 1.3px var(--t1-gold);
	white-space: nowrap; overflow: hidden;
}
.t1 .t1-co-sheet__q { display: flex; gap: 8px; margin-top: auto; }
.t1 .t1-co-sheet__q em {
	display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
	border: 1.5px solid var(--t1-line); color: var(--t1-ink-2);
	font: 600 .75rem/1 var(--t1-font-head); font-style: normal;
}
.t1 .t1-co-sheet__q em:nth-child(3) { border-color: var(--t1-rose); background: var(--t1-rose-wash); color: var(--t1-rose-text); }
.t1 .t1-co-sheets__cap {
	position: absolute; right: -2%; top: -4%; width: 64px; z-index: 4;
	fill: none; stroke: var(--t1-gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
	transform: rotate(14deg);
}
.t1 .t1-co-sheets:hover .t1-co-sheet { transform: rotate(calc((var(--t1-i) - 1) * 13deg)) translateX(calc((var(--t1-i) - 1) * 40px)); }

@media (prefers-reduced-motion: no-preference) {
	.t1 .t1-co-sheet { animation: t1-co-fan 1.1s var(--t1-ease) both; animation-delay: calc(.25s + var(--t1-i) * 90ms); }
	.t1 .t1-co-sheets__cap { animation: t1-co-bob 6s ease-in-out infinite; }
	.t1 .t1-co-sheets__cap path { stroke-dasharray: 160; stroke-dashoffset: 160; animation: t1-co-draw 1.6s var(--t1-ease) .7s forwards; }
}
@keyframes t1-co-fan { from { transform: rotate(0) translate(0, 30px); opacity: 0; } }
@keyframes t1-co-bob { 50% { transform: rotate(8deg) translateY(-8px); } }
@keyframes t1-co-draw { to { stroke-dashoffset: 0; } }

/* site.css keeps .t1-hero--page in two columns at every width; one column on phones. */
@media (max-width: 960px) {
	.t1 .t1-co-hero.t1-hero--page .t1-hero__grid { grid-template-columns: minmax(0, 1fr); }
	/* …and .t1-wall--2 keeps two grid columns (one hidden) after the wall turns into a row. */
	.t1 .t1-co-hero .t1-wall--2, .t1 .t1-co-split .t1-wall--2 { grid-template-columns: minmax(0, 1fr); height: auto; }
	.t1 .t1-co-sheets { width: min(62%, 240px); margin: 8px auto 0; }
	.t1 .t1-co-sheet { padding: 16px 16px 14px; gap: 7px; }
	.t1 .t1-co-sheet__code { font-size: 2rem; margin-bottom: 4px; }
	.t1 .t1-co-sheet__q em { width: 22px; height: 22px; font-size: .625rem; }
	.t1 .t1-co-sheets__cap { width: 46px; }
}

/* ── Download packs ─────────────────────────────────────────────────────── */

.t1 .t1-co-packs__grid { display: grid; grid-template-columns: repeat(var(--t1-cols, 3), minmax(0, 1fr)); gap: 22px; }
@media (max-width: 1099px) { .t1 .t1-co-packs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .t1 .t1-co-packs__grid { grid-template-columns: minmax(0, 1fr); } }

.t1 .t1-co-pack { gap: 10px; overflow: hidden; }
.t1 .t1-co-pack::before {
	/* a folded corner, like the papers in the hero */
	content: ""; position: absolute; right: 0; top: 0; width: 34px; height: 34px;
	background: linear-gradient(225deg, var(--t1-bg-alt) 50%, var(--t1-line) 50%, var(--t1-line) calc(50% + 1px), transparent calc(50% + 1px));
	border-bottom-left-radius: 8px;
}
.t1 .t1-co-pack:hover { transform: translateY(-6px); box-shadow: var(--t1-shadow-lift); border-color: color-mix(in srgb, var(--t1-gold) 45%, var(--t1-line)); }
.t1 .t1-co-pack:hover .t1-service__mark::after { clip-path: inset(0 0 0 0); }
.t1 .t1-co-pack__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; min-width: 0; }
.t1 .t1-co-pack__mark { font-size: clamp(2.6rem, 2.1rem + 1.6vw, 3.5rem); margin-bottom: 0; white-space: nowrap; }
.t1 .t1-co-pack__fmt {
	display: inline-flex; align-items: center; gap: 6px; flex: none;
	padding: 5px 11px 5px 9px; border-radius: 999px;
	background: var(--t1-rose-wash); color: var(--t1-rose-text);
	font-family: var(--t1-font-head); font-size: .75rem; font-weight: 700; letter-spacing: .04em;
}
.t1 .t1-co-pack__fmt .t1-co-ico { width: 15px; height: 15px; }
.t1 .t1-co-pack .t1-h3 { margin-top: -4px; }
.t1 .t1-co-pack__inside { display: grid; gap: 6px; list-style: none; }
.t1 .t1-co-pack__inside li { display: flex; align-items: center; gap: 8px; font-size: var(--t1-fs-sm); color: var(--t1-ink-2); }
.t1 .t1-co-pack__inside .t1-co-ico { width: 16px; height: 16px; color: var(--t1-gold); stroke-width: 2.2; }
.t1 .t1-co-pack__btn { margin-top: auto; align-self: stretch; }
.t1 .t1-co-pack__btn .t1-co-ico { transition: transform .3s var(--t1-ease); }
.t1 .t1-co-pack__btn:hover .t1-co-ico { transform: translateY(2px); }

/* One pack as the hero's picture. */
.t1 .t1-co-hero .t1-hero__visual > .t1-co-pack { width: min(100%, 380px); margin: 0 auto; }
.t1 .t1-co-hero .t1-hero__visual > .t1-co-pack.t1-co-pack { opacity: 1; transform: none; }

/* ── Call-or-text card (contact hero) ───────────────────────────────────── */

.t1 .t1-co-reach {
	width: min(100%, 440px); margin-left: auto;
	padding: clamp(22px, 2.6vw, 32px);
	background: var(--t1-surface); border: 1px solid var(--t1-line);
	border-radius: var(--t1-radius-lg); box-shadow: var(--t1-shadow-lift);
	display: grid; gap: 16px;
}
.t1 .t1-co-reach__title {
	display: flex; align-items: center; gap: 10px;
	font-family: var(--t1-font-head); font-weight: 600; font-size: .8125rem;
	letter-spacing: .12em; text-transform: uppercase; color: var(--t1-rose-text);
}
.t1 .t1-co-reach__list { display: grid; gap: 4px; list-style: none; }
.t1 .t1-co-reach__list li {
	display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 12px;
	padding: 12px 0; border-top: 1px solid var(--t1-line);
}
.t1 .t1-co-reach__list li:first-child { border-top: 0; padding-top: 0; }
.t1 .t1-co-reach__label { grid-column: 1; font-size: .8125rem; font-weight: 600; color: var(--t1-ink-2); }
.t1 .t1-co-reach__num {
	grid-column: 1; font-family: var(--t1-font-head); font-weight: 600;
	font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); letter-spacing: -.01em; color: var(--t1-ink);
	transition: color .2s;
}
.t1 .t1-co-reach__num:hover { color: var(--t1-rose-text); }
.t1 .t1-co-reach__sms {
	grid-column: 2; grid-row: 1 / span 2;
	display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
	border: 1px solid var(--t1-line); color: var(--t1-rose-text);
	transition: background-color .2s, color .2s, border-color .2s, transform .3s var(--t1-ease);
}
.t1 .t1-co-reach__sms:hover { background: var(--t1-rose-press); border-color: var(--t1-rose-press); color: #fff; transform: scale(1.06); }
.t1 .t1-co-reach__mail, .t1 .t1-co-reach__addr { display: flex; align-items: flex-start; gap: 10px; font-size: var(--t1-fs-sm); color: var(--t1-ink-2); }
.t1 .t1-co-reach__mail a { color: var(--t1-rose-text); font-weight: 600; }
.t1 .t1-co-reach__mail .t1-co-ico, .t1 .t1-co-reach__addr .t1-co-ico { margin-top: 2px; color: var(--t1-gold); }
@media (max-width: 960px) { .t1 .t1-co-reach { margin: 0; width: 100%; } }
@media (prefers-reduced-motion: no-preference) {
	.t1 .t1-co-reach { animation: t1-rise .9s var(--t1-ease) .25s both; }
	.t1 .t1-co-reach__list li { animation: t1-rise .8s var(--t1-ease) both; animation-delay: calc(.45s + var(--t1-i) * 110ms); }
}

/* ── Office map ─────────────────────────────────────────────────────────── */

.t1 .t1-co-office .t1-head { margin-bottom: 28px; }
.t1 .t1-co-office__frame {
	position: relative; overflow: hidden;
	border-radius: var(--t1-radius-lg); border: 1px solid var(--t1-line);
	box-shadow: var(--t1-shadow); background: var(--t1-bg-alt);
	min-height: 420px;
}
.t1 .t1-co-office__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.t1 .t1-co-office__card {
	position: absolute; left: 24px; bottom: 24px; z-index: 1;
	width: min(360px, calc(100% - 48px)); gap: 12px; padding: 22px 24px;
}
.t1 .t1-co-office__card address { display: flex; gap: 10px; font-style: normal; font-weight: 600; line-height: 1.45; }
.t1 .t1-co-office__card .t1-co-ico { margin-top: 2px; color: var(--t1-rose); }
@media (max-width: 640px) {
	.t1 .t1-co-office__frame { min-height: 0; display: grid; }
	.t1 .t1-co-office__frame iframe { position: static; height: 300px; }
	.t1 .t1-co-office__card { position: static; width: auto; border: 0; border-top: 1px solid var(--t1-line); border-radius: 0; box-shadow: none; }
}

/* ── Checks: short offers in a grid ─────────────────────────────────────── */

.t1 .t1-co-checks__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; list-style: none; }
.t1 .t1-co-checks__list li {
	display: flex; align-items: center; gap: 12px;
	padding: 16px 18px; border-radius: var(--t1-radius);
	background: var(--t1-surface); border: 1px solid var(--t1-line);
	font-family: var(--t1-font-head); font-weight: 600; font-size: .9688rem; line-height: 1.35;
	transition: border-color .3s, transform .3s var(--t1-ease);
}
.t1 .t1-co-checks__list li:hover { border-color: color-mix(in srgb, var(--t1-gold) 55%, var(--t1-line)); transform: translateY(-3px); }
.t1 .t1-co-checks__list svg {
	flex: none; width: 30px; height: 30px; padding: 6px; border-radius: 50%;
	background: var(--t1-rose-wash);
	fill: none; stroke: var(--t1-gold); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
}
@media (max-width: 520px) {
	.t1 .t1-co-checks__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.t1 .t1-co-checks__list li { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; font-size: .875rem; }
}
.t1 .t1-band--night .t1-co-checks__list li { background: var(--t1-night-2); border-color: rgba(255, 255, 255, .08); color: var(--t1-on-night); }
@media (prefers-reduced-motion: no-preference) {
	.t1-js .t1 .t1-co-checks__list svg path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .7s var(--t1-ease); transition-delay: calc(var(--t1-i, 0) * 80ms + .3s); }
	.t1-js .t1 .t1-co-checks__list li.is-in svg path { stroke-dashoffset: 0; }
}

/* ── Split: text beside a picture ───────────────────────────────────────── */

.t1 .t1-co-split__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.t1 .t1-co-split--flip .t1-co-split__visual { order: -1; }
.t1 .t1-co-split__text { display: grid; gap: 22px; }
.t1 .t1-co-split__body { display: grid; gap: 16px; color: var(--t1-ink-2); }
.t1 .t1-co-split__body a:not(.t1-btn) { color: var(--t1-rose-text); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.t1 .t1-co-split__body ul { display: grid; gap: 10px; list-style: none; }
.t1 .t1-co-split__body li { position: relative; padding-left: 26px; color: var(--t1-ink); font-weight: 500; }
.t1 .t1-co-split__body li::before {
	content: ""; position: absolute; left: 2px; top: .5em; width: 11px; height: 6px;
	border-left: 2px solid var(--t1-gold); border-bottom: 2px solid var(--t1-gold); transform: rotate(-45deg);
}
.t1 .t1-band--night .t1-co-split__body { color: var(--t1-on-night-2); }
.t1 .t1-band--night .t1-co-split__body li { color: var(--t1-on-night); }
@media (max-width: 860px) {
	.t1 .t1-co-split__grid { grid-template-columns: minmax(0, 1fr); }
	.t1 .t1-co-split--flip .t1-co-split__visual { order: 0; }
}

/* ── Video posters (YouTube) ────────────────────────────────────────────── */

.t1 .t1-co-poster {
	position: relative; display: block; width: 100%; overflow: hidden;
	aspect-ratio: 16 / 9; border-radius: var(--t1-radius-lg);
	background: var(--t1-night-2); box-shadow: var(--t1-shadow-lift);
}
.t1 .t1-co-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--t1-ease); }
.t1 .t1-co-poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 10, 22, .72), transparent 55%); }
.t1 .t1-co-poster .t1-face__play {
	left: 50%; top: 50%; right: auto; width: 64px; height: 64px; margin: -32px 0 0 -32px;
	opacity: 1; transform: none; z-index: 2;
	box-shadow: 0 0 0 0 rgba(231, 84, 128, .5);
}
.t1 .t1-co-poster .t1-face__play svg { width: 24px; }
.t1 .t1-co-poster:hover img { transform: scale(1.05); }
.t1 .t1-co-poster:hover .t1-face__play { background: var(--t1-rose-press); color: #fff; transform: scale(1.08); }
.t1 .t1-co-poster:focus-visible { outline: 2px solid var(--t1-rose); outline-offset: 3px; }
.t1 .t1-co-poster__cap {
	position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 2;
	font-family: var(--t1-font-head); font-weight: 600; font-size: .9375rem; line-height: 1.3; color: #fff; text-align: left;
}
@media (prefers-reduced-motion: no-preference) {
	.t1 .t1-co-split .t1-co-poster .t1-face__play { animation: t1-co-pulse 2.8s ease-out 1.2s infinite; }
}
@keyframes t1-co-pulse { 0% { box-shadow: 0 0 0 0 rgba(231, 84, 128, .55); } 70%, 100% { box-shadow: 0 0 0 18px rgba(231, 84, 128, 0); } }

.t1 .t1-co-yt__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; list-style: none; }
.t1 .t1-co-yt__grid .t1-co-poster { aspect-ratio: 4 / 5; }
/* the frames are letterboxed 4:3; zoom past the black bars */
.t1 .t1-co-yt__grid .t1-co-poster img { transform: scale(1.34); }
.t1 .t1-co-yt__grid .t1-co-poster:hover img { transform: scale(1.4); }
@media (max-width: 1099px) { .t1 .t1-co-yt__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
	.t1 .t1-co-yt__grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; margin-right: calc(var(--t1-gutter) * -1); padding-right: var(--t1-gutter); padding-bottom: 6px; }
	.t1 .t1-co-yt__grid li { scroll-snap-align: start; }
}

/* ── Partners picture ───────────────────────────────────────────────────── */

.t1 .t1-co-diagram {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(90px, 1.1fr) minmax(0, 1fr); align-items: center; gap: 10px;
	width: min(100%, 520px); margin: 0 auto;
}
.t1 .t1-co-diagram__node {
	display: grid; justify-items: center; gap: 12px; padding: 26px 12px;
	background: var(--t1-surface); border: 1px solid var(--t1-line);
	border-radius: var(--t1-radius-lg); box-shadow: var(--t1-shadow-lift);
	font-family: var(--t1-font-head); font-size: .9375rem; text-align: center;
}
.t1 .t1-co-diagram__node .t1-why__icon { width: 56px; height: 52px; }
/* site.css hides why-icons until their .t1-why__item scrolls in; this one has no item. */
.t1-js .t1 .t1-co-diagram__node .t1-why__icon * { stroke-dasharray: none; stroke-dashoffset: 0; }
.t1 .t1-co-diagram__node--us { border-color: color-mix(in srgb, var(--t1-rose) 45%, var(--t1-line)); }
.t1 .t1-co-diagram__cap { width: 58px; fill: none; stroke: var(--t1-gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.t1 .t1-co-diagram__links { display: grid; gap: 22px; }
.t1 .t1-co-diagram__flow { display: grid; gap: 4px; justify-items: center; }
.t1 .t1-co-diagram__flow em { font-style: normal; font-family: var(--t1-font-head); font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--t1-rose-text); }
.t1 .t1-co-diagram__flow svg { width: 100%; height: 14px; overflow: visible; fill: none; stroke: var(--t1-gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: no-preference) {
	.t1 .t1-co-diagram__flow svg path { stroke-dasharray: 6 7; animation: t1-co-flow 1.4s linear infinite; }
	.t1 .t1-co-diagram__flow--back svg path { animation-direction: reverse; }
	.t1 .t1-co-diagram__node { animation: t1-rise .9s var(--t1-ease) .3s both; }
	.t1 .t1-co-diagram__node--us { animation-delay: .5s; }
}
@keyframes t1-co-flow { to { stroke-dashoffset: -26; } }
@media (max-width: 960px) { .t1 .t1-co-diagram { margin: 8px 0 0; } }
@media (max-width: 420px) {
	.t1 .t1-co-diagram__node { padding: 18px 8px; font-size: .8125rem; }
	.t1 .t1-co-diagram__node .t1-why__icon { width: 42px; height: 40px; }
	.t1 .t1-co-diagram__cap { width: 44px; }
}

/* Six reasons (in-home page) read better as two rows of three than 4 + 2. */
@media (min-width: 961px) {
	.t1 #programs .t1-why__list[style*="--t1-cols"] { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 48px; }
}
