@charset "utf-8";

/* ==========================================================================
   CamTalk / camtalk/technology.php - LIVE TRANSLATION TECHNOLOGY (tl1,
   2026-11-20).

   One section between the hero and the four technologies, at both widths.
   It is a block of its own (.techl) rather than a fifth <ul> in .list: the
   wide window alternates the sides of those four by `nth-of-type`, and the
   phone aims each crop the same way, so a block put in front of them would
   have moved every one of them.

   It borrows the neighbouring blocks' system exactly - the same ground,
   marker, heading and copy, the same container, gutters and spacing - from
   css/camtalk-tech-mobile.css (up to 1000px) and
   css/camtalk-tech-desktop.css (above it). The figures below are theirs.

   THE ORDER. One set of elements, placed by grid areas:
     phone   marker / heading / copy / closing line / picture (tl2: the
             closing line moved up to the words)
     wide    the four lines on the left, centred against the picture on
             the right (the odd technologies' arrangement)

   THE PICTURE is square and is shown whole in a square frame - both faces,
   the other person's window, both caption lines and the call buttons are
   part of the file; nothing is laid over it.
   ========================================================================== */

.techl, .techl * { box-sizing: border-box; }

.techl__eyebrow,
.techl__title,
.techl__text,
.techl__closing,
.techl__media { margin: 0; padding: 0; }

.techl__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* ==========================================================================
   THE PHONE
   ========================================================================== */
@media only screen and (max-width: 1000px) {

	.techl {
		--tm-ink: #0b0b0f;
		--tm-ink-2: #121219;
		--tm-line: rgba(255, 255, 255, 0.10);
		--tm-fg: #f4f2f7;
		--tm-muted: rgba(255, 255, 255, 0.62);
		--tm-accent: #ff3d76;
		--tm-gutter: clamp(16px, 5.1vw, 22px);
		--tm-radius: 14px;

		position: relative;
		z-index: 0;
		/* the first technology's own top (40px, no hairline) and a
		   technology's own foot (36px); the hairline under this block is the
		   one the next technology would otherwise draw above itself */
		padding: 40px var(--tm-gutter) 36px;
		border-bottom: 1px solid var(--tm-line);
		background-color: var(--tm-ink);
		text-align: left;
		color: var(--tm-fg);
	}

	.techl__inner {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"eyebrow"
			"title"
			"text"
			"closing"
			"media";
	}

	.techl__eyebrow {
		grid-area: eyebrow;
		font-size: 11px;
		font-weight: 700;
		line-height: 1;
		letter-spacing: 0.16em;
		text-transform: uppercase;
		color: var(--tm-accent);
	}

	.techl__title {
		grid-area: title;
		margin-top: 12px;
		font-size: clamp(20px, 5.9vw, 26px);
		font-weight: 800;
		line-height: 1.3;
		letter-spacing: -0.022em;
		color: var(--tm-fg);
		word-break: keep-all;
	}

	.techl__text {
		grid-area: text;
		margin-top: 10px;
		font-size: clamp(13.5px, 3.8vw, 15.5px);
		font-weight: 500;
		line-height: 1.66;
		color: var(--tm-muted);
		word-break: keep-all;
	}

	.techl__media {
		grid-area: media;
		width: 100%;
		margin-top: 20px;
		aspect-ratio: 1 / 1;
		border: 1px solid var(--tm-line);
		border-radius: var(--tm-radius);
		overflow: hidden;
		background-color: var(--tm-ink-2);
	}

	.techl__closing {
		grid-area: closing;
		margin-top: 14px;
		font-size: clamp(15px, 4.2vw, 17px);
		font-weight: 700;
		line-height: 1.5;
		letter-spacing: -0.01em;
		color: var(--tm-fg);
		word-break: keep-all;
	}

	html[lang="en"] .techl__title,
	html[lang="en"] .techl__text,
	html[lang="en"] .techl__closing { word-break: normal; }
}

/* ==========================================================================
   THE WIDE WINDOW
   ========================================================================== */
@media only screen and (min-width: 1001px) {

	.techl {
		--td-max: 1200px;
		--td-gutter: clamp(40px, 6vw, 120px);
		--td-w: min(var(--td-max), calc(100% - 2 * var(--td-gutter)));
		--td-ink: #0b0b0f;
		--td-ink-2: #121219;
		--td-line: rgba(255, 255, 255, .10);
		--td-fg: #f4f2f7;
		--td-muted: rgba(255, 255, 255, .64);
		--td-accent: #ff3d76;
		--td-section: 112px;
		--td-col: 80px;
		--td-radius: 18px;

		position: relative;
		z-index: 0;
		isolation: isolate;
		/* the section's top is the one .tech_box used to open with; .tech_box
		   keeps its own, which is the gap between two technologies */
		padding: var(--td-section) 0 0;
		background-color: var(--td-ink);
		text-align: left;
		color: var(--td-fg);
	}

	/* an odd technology's grid: words left, a square picture right */
	.techl__inner {
		display: grid;
		width: var(--td-w);
		margin: 0 auto;
		grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
		grid-template-rows: 1fr auto auto auto auto 1fr;
		grid-template-areas:
			".       media"
			"eyebrow media"
			"title   media"
			"text    media"
			"closing media"
			".       media";
		column-gap: var(--td-col);
	}

	.techl__eyebrow,
	.techl__title,
	.techl__text,
	.techl__closing { max-width: 500px; }

	.techl__eyebrow {
		grid-area: eyebrow;
		font-size: 13px;
		font-weight: 700;
		line-height: 1.3;
		letter-spacing: .16em;
		text-transform: uppercase;
		color: var(--td-accent);
	}

	.techl__title {
		grid-area: title;
		margin-top: 16px;
		font-size: clamp(34px, 2.85vw, 42px);
		font-weight: 800;
		line-height: 1.26;
		letter-spacing: -.025em;
		color: var(--td-fg);
		word-break: keep-all;
	}

	.techl__text {
		grid-area: text;
		margin-top: 20px;
		font-size: 19px;
		font-weight: 500;
		line-height: 1.62;
		color: var(--td-muted);
		word-break: keep-all;
	}

	.techl__closing {
		grid-area: closing;
		margin-top: 28px;
		font-size: 21px;
		font-weight: 700;
		line-height: 1.45;
		letter-spacing: -.015em;
		color: var(--td-fg);
		word-break: keep-all;
	}

	html[lang="en"] .techl__title,
	html[lang="en"] .techl__text,
	html[lang="en"] .techl__closing { word-break: normal; }

	.techl__media {
		grid-area: media;
		align-self: center;
		width: 100%;
		max-width: 560px;
		aspect-ratio: 1 / 1;
		border: 1px solid var(--td-line);
		border-radius: var(--td-radius);
		overflow: hidden;
		background-color: var(--td-ink-2);
	}

	/* the neighbours' steps, unchanged */
	@media (min-width: 1680px) {
		.techl { --td-max: 1280px; --td-section: 120px; }
	}
	@media (max-width: 1239px) {
		.techl { --td-col: 56px; --td-section: 96px; }
		.techl__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 46%); }
		.techl__text { font-size: 18px; }
	}
}
