@charset "utf-8";

/* ==========================================================================
   CamTalk / service/live.php - 라이브, the wide window (lvd1).

   SCOPE. Every rule is inside `@media only screen and (min-width: 1001px)`,
   the other side of the project's breakpoint (css/camtalk-live-mobile.css is
   `max-width: 1000px` from its first rule to its last, plus one short-screen
   block that is also max-width 1000px), and under `.ctl-page`, the class
   only this page puts on <body>. The phone is not touched by a line of this
   file. It is linked from live.php itself.

   ONE PAGE FOR BOTH WIDTHS. The wide window lays out the phone's own markup:
   the same strings, the same hero phone (one file at both widths), the four
   features with wide versions of their pictures, the same store links.

   THE LAYOUT, top to bottom, on one light rose field:
     hero      the site's white bar; breadcrumb on the container line, the
               words left, the whole phone right, header + hero one screen
     HOW       the heading centred, then four rows of words and picture,
               45 : 55, alternating sides (01 and 03 words left)
     closing   centred: heading, line, three store buttons in one row, the
               availability notes in a 760px column; fades to white above
               the shared footer

   SCALE at 1440: container 1200 (gutters 120), 1280 from 1680; hero heading
   60, section heading 40, feature headings 36, copy 18-19; sections 104
   apart. Type is the site's Paperozi.

   STABILITY. No pinning, no snap, no scroll handler, no reveal; every
   picture has width and height in the markup. Nothing here is positioned
   with a z-index, so nothing can paint over the bar.
   ========================================================================== */

@media only screen and (min-width: 1001px) {

	.ctl-page {
		--ld-max: 1200px;
		--ld-gutter: clamp(40px, 6vw, 120px);
		--ld-w: min(var(--ld-max), calc(100% - 2 * var(--ld-gutter)));
		--ld-side: calc((100% - var(--ld-w)) / 2);
		--ld-air: clamp(88px, 7.2vw, 112px);
		--ld-header: 96px;               /* .gnb on a wide window (camtalk-header.css) */

		--cl-red: #e8253f;
		--cl-ink: #17171d;
		--cl-ink-2: #43434d;
		--cl-warm: #5c4a51;
		--cl-soft: #7a5c66;
	}

	.ctl, .ctl *, .ctl *::before, .ctl *::after { box-sizing: border-box; }
	.ctl-page .ctl[hidden] { display: flex; }
	/* the phone's single rose field, so the sections have no seams */
	.ctl {
		flex-direction: column;
		color: var(--cl-ink);
		background: linear-gradient(to bottom,
			#fff7f9 0%,
			#ffeef3 14%,
			#fff5f7 30%,
			#ffeff4 48%,
			#fff6f8 66%,
			#ffedf2 84%,
			#fff8fa 100%);
	}
	.ctl img { display: block; max-width: 100%; }
	.ctl a { text-decoration: none; }
	.ctl ol { list-style: none; margin: 0; padding: 0; }
	:where(.ctl) :where(h1, h2, h3, p) { margin: 0; }
	.ctl a:focus-visible { outline: 3px solid var(--cl-red); outline-offset: 3px; }

	/* The phone's breaks in the hero paragraph and the four features: the
	   Korean ones are phrases and stay; the English ones are dropped (the
	   script has put a space before each, so no two words are glued) and
	   the lines balanced, or a narrow column leaves one word on a line. */
	html[lang="en"] .ctl [data-ctl-flow] br { display: none; }
	html[lang="en"] .ctl [data-ctl-flow] { text-wrap: balance; }

	.ctl-eyebrow {
		font-size: 14px;
		font-weight: 700;
		letter-spacing: .18em;
		color: var(--cl-red);
	}
	.ctl-title {
		margin-top: 14px;
		font-size: clamp(36px, 2.8vw, 42px);   /* 40 at 1440 */
		font-weight: 800;
		line-height: 1.26;
		letter-spacing: -.03em;
		color: var(--cl-ink);
		word-break: keep-all;
	}
	html[lang="en"] .ctl-title,
	html[lang="en"] .ctl-hero__title,
	html[lang="en"] .ctl-hero__desc,
	html[lang="en"] .ctl-feature__title,
	html[lang="en"] .ctl-feature__desc,
	html[lang="en"] .ctl-cta__title,
	html[lang="en"] .ctl-cta__desc,
	html[lang="en"] .ctl-avail p { word-break: normal; overflow-wrap: break-word; }

	/* ======================================================================
	   1. HERO - words left, the whole phone right
	   ====================================================================== */

	/* Header + hero = one screen: the bar lies over the top 96px, which the
	   hero pads itself clear of. A min-height, so a short window grows the
	   hero rather than cutting the words or the phone. */
	.ctl-hero {
		position: relative;
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		grid-template-rows: auto minmax(0, 1fr);
		grid-template-areas: "crumb crumb" "copy art";
		column-gap: 48px;
		min-height: 100vh;
		min-height: 100svh;
		padding: var(--ld-header) var(--ld-side) clamp(28px, 4vh, 48px);
		overflow: hidden;
		background:
			radial-gradient(34% 56% at 74% 56%, rgba(255, 170, 194, .40) 0%, rgba(255, 170, 194, 0) 72%),
			radial-gradient(40% 40% at 16% 46%, rgba(255, 214, 225, .50) 0%, rgba(255, 214, 225, 0) 74%);
	}

	.ctl-crumb {
		grid-area: crumb;
		display: flex;
		align-items: center;
		padding: 26px 0 0;
		font-size: 14px;
		font-weight: 500;
		line-height: 1.4;
		letter-spacing: -.01em;
		color: rgba(23, 23, 29, .62);
	}
	.ctl-crumb b { color: var(--cl-ink); font-weight: 700; }
	.ctl-crumb span { margin: 0 8px; color: rgba(23, 23, 29, .34); }

	.ctl-hero__copy {
		grid-area: copy;
		align-self: center;
		max-width: 580px;
		padding: 0 0 24px;
		background: none;
	}

	/* THE PHONE, whole, at its own 941 : 1672 - never stretched or tilted.
	   Its height is what the screen leaves under the bar and the breadcrumb
	   (220px), between 520px and 820px; the phone itself is the opaque
	   86% of that height (rows 55-1498 of the cut-out). The file is 941px
	   wide and is never shown wider than 462px, so it is downscaled at every
	   desktop size. A cut-out with real alpha: it stands on the rose with no
	   frame, card or shadow of ours around it. */
	.ctl .ctl-hero__art {
		grid-area: art;
		position: static;
		transform: none;
		justify-self: center;
		align-self: center;
		width: auto;
		height: min(820px, max(520px, calc(100vh - 220px)));
		height: min(820px, max(520px, calc(100svh - 220px)));
		max-width: none;
		/* The cut-out's "transparent" ground is not quite: alpha 4-9 of a
		   pale grey, invisible on a phone (the file runs off the screen) but
		   a faint rectangle on the wide rose. An opacity mask fades the box's
		   outer margin to nothing; the phone sits at 14-86% across and 3-90%
		   down, inside every fade, so not a pixel of it is touched. */
		-webkit-mask-image:
			linear-gradient(to right, rgba(0, 0, 0, 0) 0%, #000 11%, #000 89%, rgba(0, 0, 0, 0) 100%),
			linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, #000 3%, #000 92%, rgba(0, 0, 0, 0) 100%);
		-webkit-mask-composite: source-in;
		mask-image:
			linear-gradient(to right, rgba(0, 0, 0, 0) 0%, #000 11%, #000 89%, rgba(0, 0, 0, 0) 100%),
			linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, #000 3%, #000 92%, rgba(0, 0, 0, 0) 100%);
		mask-composite: intersect;
	}

	.ctl-hero__title {
		font-size: clamp(52px, min(4.2vw, 7vh), 64px);   /* 60 at 1440 x 900 */
		font-weight: 800;
		line-height: 1.16;
		letter-spacing: -.035em;
		color: var(--cl-ink);
		word-break: keep-all;
	}
	.ctl-hero__title em,
	.ctl-cta__title em { font-style: normal; color: var(--cl-red); }
	html[lang="en"] .ctl-hero__title { font-size: clamp(38px, min(3.7vw, 6.4vh), 56px); letter-spacing: -.04em; }

	.ctl-hero__desc {
		margin-top: 26px;
		max-width: 30em;
		font-size: clamp(18px, 1.32vw, 20px);
		font-weight: 400;
		line-height: 1.7;
		letter-spacing: -.02em;
		color: var(--cl-ink-2);
		word-break: keep-all;
		text-wrap: pretty;
	}

	/* ======================================================================
	   2. HOW TO ENJOY LIVE - four rows, 45 : 55, alternating
	   ====================================================================== */

	.ctl-how {
		padding: var(--ld-air) var(--ld-side) calc(var(--ld-air) - 24px);
		text-align: left;
		background:
			radial-gradient(60% 10% at 50% 6%, rgba(255, 196, 212, .36) 0%, rgba(255, 196, 212, 0) 74%);
	}
	.ctl-head { margin-bottom: clamp(56px, 5vw, 72px); text-align: center; }

	.ctl-features { display: grid; gap: clamp(64px, 6.4vw, 96px); }

	/* The words are centred against the picture by the two flexible rows
	   around them; the picture spans all five. */
	.ctl-feature {
		display: grid;
		grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
		grid-template-rows: 1fr auto auto auto 1fr;
		grid-template-areas: ". art" "num art" "title art" "desc art" ". art";
		column-gap: clamp(56px, 6vw, 88px);
	}
	.ctl-feature:nth-child(even) {
		grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
		grid-template-areas: "art ." "art num" "art title" "art desc" "art .";
	}
	.ctl-feature > picture { grid-area: art; display: block; min-width: 0; }

	.ctl-feature__num {
		grid-area: num;
		display: inline-flex;
		align-items: center;
		justify-self: start;
		gap: 10px;
		font-size: 15px;
		font-weight: 800;
		letter-spacing: .12em;
		color: var(--cl-red);
	}
	/* the phone's short red rule either side of the number */
	.ctl-feature__num::before,
	.ctl-feature__num::after {
		content: "";
		width: 18px;
		height: 2px;
		border-radius: 1px;
		background: rgba(232, 37, 63, .38);
	}

	.ctl-feature__title {
		grid-area: title;
		max-width: 480px;
		margin-top: 16px;
		font-size: clamp(32px, 2.5vw, 38px);   /* 36 at 1440 */
		font-weight: 800;
		line-height: 1.32;
		letter-spacing: -.035em;
		color: var(--cl-ink);
		word-break: keep-all;
	}
	.ctl-feature__desc {
		grid-area: desc;
		max-width: 480px;
		margin-top: 18px;
		font-size: clamp(18px, 1.3vw, 19px);
		line-height: 1.72;
		letter-spacing: -.015em;
		color: var(--cl-warm);
		word-break: keep-all;
	}

	/* The pictures are drawn on white: the outer edge of each fades to
	   nothing (opacity mask only - no blend, no filter), as on the phone, so
	   no white square stands on the rose. The subject is inside the faded
	   margin in every one, so nothing of it is cropped. 1200px files, shown
	   at most 620px. */
	.ctl-feature__art {
		width: 100%;
		max-width: 620px;
		height: auto;
		margin: 0 auto;
		--ctl-edge: 7%;
		--ctl-edge-b: var(--ctl-edge);
		-webkit-mask-image:
			linear-gradient(to right, rgba(0, 0, 0, 0) 0%, #000 var(--ctl-edge), #000 calc(100% - var(--ctl-edge)), rgba(0, 0, 0, 0) 100%),
			linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, #000 var(--ctl-edge), #000 calc(100% - var(--ctl-edge-b)), rgba(0, 0, 0, 0) 100%);
		-webkit-mask-composite: source-in;
		mask-image:
			linear-gradient(to right, rgba(0, 0, 0, 0) 0%, #000 var(--ctl-edge), #000 calc(100% - var(--ctl-edge)), rgba(0, 0, 0, 0) 100%),
			linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, #000 var(--ctl-edge), #000 calc(100% - var(--ctl-edge-b)), rgba(0, 0, 0, 0) 100%);
		mask-composite: intersect;
	}
	.ctl-feature__art--fade { --ctl-edge-b: 18%; }

	/* ======================================================================
	   3. THE CLOSING - centred, one row of stores
	   ====================================================================== */

	.ctl-cta {
		padding: calc(var(--ld-air) - 16px) var(--ld-side) calc(var(--ld-air) + 16px);
		text-align: center;
		background:
			radial-gradient(56% 52% at 50% 30%, rgba(255, 168, 192, .40) 0%, rgba(255, 168, 192, 0) 74%),
			linear-gradient(to bottom, rgba(255, 255, 255, 0) 72%, #fff 100%);
	}
	.ctl-cta__title {
		font-size: clamp(38px, 3vw, 46px);   /* 43 at 1440 */
		font-weight: 800;
		line-height: 1.3;
		letter-spacing: -.035em;
		color: var(--cl-ink);
		word-break: keep-all;
	}
	.ctl-cta__desc {
		margin-top: 18px;
		font-size: clamp(18px, 1.32vw, 20px);
		line-height: 1.7;
		letter-spacing: -.015em;
		color: var(--cl-warm);
		word-break: keep-all;
	}

	.ctl-stores {
		display: flex;
		justify-content: center;
		flex-wrap: wrap;
		gap: 14px;
		margin: 40px auto 0;
	}
	.ctl-store {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 10px;
		min-width: 210px;
		min-height: 60px;
		padding: 0 28px;
		border-radius: 999px;
		border: 1px solid rgba(232, 37, 63, .16);
		background: #fff;
		color: var(--cl-ink);
		font-size: 17px;
		font-weight: 700;
		letter-spacing: -.01em;
		box-shadow: 0 10px 22px -12px rgba(214, 38, 72, .32);
		transition: border-color .2s, box-shadow .2s, transform .2s;
	}
	.ctl-store:hover {
		border-color: rgba(232, 37, 63, .42);
		box-shadow: 0 14px 26px -12px rgba(214, 38, 72, .40);
		transform: translateY(-1px);
	}
	.ctl-store img { width: 22px; height: 22px; flex: 0 0 auto; }

	.ctl-avail { max-width: 760px; margin: 44px auto 0; }
	.ctl-avail p {
		font-size: 15px;
		line-height: 1.72;
		letter-spacing: -.01em;
		color: var(--cl-soft);
		word-break: keep-all;
		text-wrap: pretty;
	}
	.ctl-avail p + p { margin-top: 8px; }

	/* ======================================================================
	   NARROW AND WIDE
	   ====================================================================== */

	@media (max-width: 1179px) {
		/* the words get the wider share; the phone is height-bound anyway */
		.ctl-hero { column-gap: 32px; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
		.ctl-feature { column-gap: 48px; }
		.ctl-feature__title { font-size: 30px; }
		.ctl-store { min-width: 190px; padding: 0 22px; }
	}

	@media (min-width: 1680px) {
		.ctl-page { --ld-max: 1280px; }
	}

	@media (prefers-reduced-motion: reduce) {
		.ctl-store { transition: none; }
		.ctl-store:hover { transform: none; }
	}
}
