/* Tic Tonic case studies and the bottle viewer. */

.tt-case { padding-block: clamp(4rem, 9vw, 8rem); }
.tt-case + .tt-case { border-top: 1px solid rgba(255,255,255,.07); }
.tt-case__no { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--paper-45, rgba(255,255,255,.45)); }
.tt-case__title { margin-top: 1rem; max-width: 16ch; }
.tt-case__stand { margin-top: 1.4rem; max-width: 46ch; font-size: clamp(1.05rem, 1.6vw, 1.28rem); line-height: 1.55; color: var(--paper-70, rgba(255,255,255,.7)); }
.tt-case__grid { margin-top: clamp(2.5rem, 5vw, 4rem); display: grid; gap: clamp(1.6rem, 3vw, 2.8rem); grid-template-columns: 1fr; }
@media (min-width: 900px) { .tt-case__grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.tt-case__note h3 { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--paper-45, rgba(255,255,255,.45)); margin: 0 0 .6rem; }
.tt-case__note p { margin: 0 0 1.6rem; max-width: 52ch; line-height: 1.7; color: var(--paper-70, rgba(255,255,255,.72)); }
.tt-case__note p:last-child { margin-bottom: 0; }

.tt-shots { margin-top: clamp(2rem, 4vw, 3.4rem); display: grid; gap: clamp(1rem, 2vw, 1.6rem); grid-template-columns: 1fr; }
@media (min-width: 760px) { .tt-shots--2 { grid-template-columns: 1fr 1fr; } }
.tt-shot { margin: 0; border-radius: 14px; overflow: hidden; background: rgba(255,255,255,.03); }
.tt-shot img { display: block; width: 100%; height: auto; }
.tt-shot figcaption { padding: .85rem 1rem 1rem; font-size: .82rem; line-height: 1.5; color: var(--paper-45, rgba(255,255,255,.5)); }
.tt-shot--wide { grid-column: 1 / -1; }
.tt-shot--pad img { padding: clamp(1rem, 3vw, 2.4rem); box-sizing: border-box; }
.tt-shot--scroll { overflow-x: auto; }
.tt-shot--scroll img { width: auto; max-width: none; height: clamp(180px, 26vw, 320px); }

/* ---------- bottle viewer ---------- */
.tt-bv { --tt-glow: rgba(226, 46, 42, .30); margin-top: clamp(2rem, 4vw, 3rem); }
.tt-bv[data-flavour="lemonlime"]        { --tt-glow: rgba(58, 176, 78, .28); }
.tt-bv[data-flavour="orangemango"]      { --tt-glow: rgba(240, 160, 32, .28); }
.tt-bv[data-flavour="peach"]            { --tt-glow: rgba(232, 78, 60, .28); }
.tt-bv[data-flavour="pineapplecoconut"] { --tt-glow: rgba(60, 160, 214, .28); }
.tt-bv[data-flavour="pinklemonade"]     { --tt-glow: rgba(232, 96, 140, .28); }

.tt-bv__stage {
  position: relative; aspect-ratio: 1 / 1.32; width: 100%;
  border-radius: 18px; overflow: hidden; touch-action: pan-y;
  cursor: grab; background:
    radial-gradient(58% 46% at 50% 44%, var(--tt-glow), transparent 70%),
    linear-gradient(180deg, #14161c, #0c0e13);
  transition: box-shadow .4s ease;
}
.tt-bv__stage.is-grabbing { cursor: grabbing; }
.tt-bv__stage:focus-visible { outline: 2px solid var(--accent, #4ea1ff); outline-offset: 3px; }
.tt-bv__canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity .5s ease; }
.tt-bv.is-ready .tt-bv__canvas { opacity: 1; }

.tt-bv__boot { position: absolute; inset: 0; display: grid; place-items: center; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--paper-45, rgba(255,255,255,.4)); }
.tt-bv.is-ready .tt-bv__boot { opacity: 0; pointer-events: none; transition: opacity .4s ease; }

.tt-bv__hint {
  position: absolute; left: 50%; bottom: 1.1rem; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .9rem;
  border-radius: 999px; background: rgba(0,0,0,.45); backdrop-filter: blur(6px);
  font-size: .78rem; color: rgba(255,255,255,.8); pointer-events: none;
  transition: opacity .35s ease;
}
.tt-bv.has-moved .tt-bv__hint { opacity: 0; }

.tt-bv__bar { margin-top: 1.1rem; display: flex; flex-wrap: wrap; gap: .5rem .6rem; align-items: center; }
.tt-bv__faces { display: flex; gap: .4rem; }
.tt-bv__btn {
  appearance: none; border: 1px solid rgba(255,255,255,.16); background: transparent;
  color: var(--paper-70, rgba(255,255,255,.75)); font: inherit; font-size: .84rem;
  padding: .5rem .95rem; border-radius: 999px; cursor: pointer;
  min-height: 44px; display: inline-flex; align-items: center;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.tt-bv__btn[aria-pressed="true"] { background: rgba(255,255,255,.92); color: #10121a; border-color: transparent; }
.tt-bv__btn:focus-visible { outline: 2px solid var(--accent, #4ea1ff); outline-offset: 2px; }
.tt-bv__readout { margin-left: auto; font-variant-numeric: tabular-nums; font-size: .8rem; color: var(--paper-45, rgba(255,255,255,.45)); }

.tt-bv__flavours { margin-top: .7rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.tt-bv__chip {
  appearance: none; border: 1px solid rgba(255,255,255,.14); background: transparent;
  color: var(--paper-70, rgba(255,255,255,.7)); font: inherit; font-size: .8rem;
  padding: .45rem .8rem; border-radius: 999px; cursor: pointer; min-height: 40px;
  display: inline-flex; align-items: center; gap: .5rem;
}
.tt-bv__chip::before { content: ''; width: .55rem; height: .55rem; border-radius: 50%; background: var(--dot, #888); }
.tt-bv__chip[aria-pressed="true"] { border-color: rgba(255,255,255,.55); color: #fff; }
.tt-bv__chip:focus-visible { outline: 2px solid var(--accent, #4ea1ff); outline-offset: 2px; }

.tt-bv__live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .tt-bv__canvas, .tt-bv__hint, .tt-bv__boot, .tt-bv__btn { transition-duration: .01ms !important; }
}

/* Format tabs. One bottle model per format, so the tabs swap the whole stage. */
.tt-bv__models {
	display: flex;
	gap: 6px;
	margin: 0 0 14px;
	padding: 4px;
	border-radius: 999px;
	background: rgba( 255, 255, 255, 0.05 );
	align-self: flex-start;
}

.tt-bv__tab {
	appearance: none;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 0.8125rem;
	letter-spacing: 0.02em;
	padding: 9px 18px;
	min-height: 40px;
	border-radius: 999px;
	cursor: pointer;
	opacity: 0.62;
	transition: background-color 0.18s ease, opacity 0.18s ease;
}

.tt-bv__tab:hover { opacity: 0.9; }

.tt-bv__tab[aria-pressed="true"] {
	opacity: 1;
	background: rgba( 255, 255, 255, 0.12 );
}

.tt-bv__tab:focus-visible,
.tt-bv__btn:focus-visible,
.tt-bv__chip:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.tt-bv__flavours[hidden] { display: none; }

/* Turnable print mockups. The panels are real artwork placed in real space. */
.tt3d {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.tt3d__stage {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 0.92;
	perspective: 1500px;
	perspective-origin: 50% 46%;
	border-radius: 18px;
	overflow: hidden;
	background:
		radial-gradient( 120% 90% at 50% 22%, rgba( 255, 255, 255, 0.10 ), rgba( 255, 255, 255, 0 ) 62% ),
		linear-gradient( 180deg, #16181d 0%, #0b0d11 100% );
	touch-action: pan-y;
	cursor: grab;
}

.tt3d.is-dragging .tt3d__stage { cursor: grabbing; }
.tt3d__stage:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

.tt3d__fit {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	transform: scale( var( --fit, 1 ) );
	transform-style: preserve-3d;
}

.tt3d__scene {
	position: relative;
	width: 0;
	height: 0;
	transform-style: preserve-3d;
	transform: rotateX( var( --pitch, -12deg ) ) rotateY( var( --yaw, -28deg ) );
}

.tt3d.is-eased .tt3d__scene { transition: transform 0.45s cubic-bezier( 0.2, 0.7, 0.2, 1 ); }

.tt3d__face {
	position: absolute;
	left: 0;
	top: 0;
	background-repeat: no-repeat;
	background-size: 100% 100%;
	background-position: 50% 50%;
	backface-visibility: hidden;
	outline: 1px solid rgba( 0, 0, 0, 0.35 );
	outline-offset: -1px;
}

.tt3d__face[hidden] { display: none; }

.tt3d__shadow {
	position: absolute;
	left: 50%;
	top: 50%;
	border-radius: 50%;
	background: radial-gradient( closest-side, rgba( 0, 0, 0, 0.62 ), rgba( 0, 0, 0, 0 ) );
	filter: blur( 10px );
	transform-style: preserve-3d;
}

.tt3d__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.tt3d__views,
.tt3d__skins {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.tt3d__btn {
	appearance: none;
	border: 1px solid rgba( 255, 255, 255, 0.16 );
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 0.8125rem;
	padding: 10px 16px;
	min-height: 44px;
	border-radius: 999px;
	cursor: pointer;
	transition: background-color 0.18s ease, border-color 0.18s ease;
}

.tt3d__btn:hover { border-color: rgba( 255, 255, 255, 0.36 ); }
.tt3d__btn[aria-pressed="true"] { background: rgba( 255, 255, 255, 0.13 ); border-color: transparent; }
.tt3d__btn:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

.tt3d__readout {
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	opacity: 0.55;
	font-variant-numeric: tabular-nums;
}

.tt3d__hint {
	position: absolute;
	left: 50%;
	bottom: 14px;
	transform: translateX( -50% );
	margin: 0;
	padding: 6px 14px;
	border-radius: 999px;
	background: rgba( 0, 0, 0, 0.45 );
	font-size: 0.75rem;
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
}

.tt3d.is-ready .tt3d__hint { opacity: 0.7; }
.tt3d.is-dragging .tt3d__hint { opacity: 0; }

.tt3d__live {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect( 0 0 0 0 );
	clip-path: inset( 50% );
	white-space: nowrap;
}

/* Without 3D support the stage would be an empty box, so it steps aside. */
.tt3d.is-flat .tt3d__stage,
.tt3d.is-flat .tt3d__bar { display: none; }

@media ( prefers-reduced-motion: reduce ) {
	.tt3d.is-eased .tt3d__scene { transition: none; }
}

@media ( max-width: 640px ) {
	.tt3d__stage { aspect-ratio: 1 / 1; }
}

/* The chiller. Cabinet, glass and light are built here; only the panel is art. */
.tt3d__cut,
.tt3d__door { outline: 0; }

.tt3d__lit {
	box-shadow: inset 0 0 90px rgba( 120, 170, 200, 0.55 );
}

.tt3d__shelf {
	box-shadow: 0 0 22px rgba( 200, 225, 240, 0.5 );
	outline: 0;
}

.tt3d__door {
	border: 15px solid #0b0c0f;
	border-radius: 3px;
	box-sizing: border-box;
	background:
		linear-gradient( 108deg,
			rgba( 255, 255, 255, 0.40 ) 0%,
			rgba( 255, 255, 255, 0.05 ) 24%,
			rgba( 255, 255, 255, 0.28 ) 44%,
			rgba( 255, 255, 255, 0.03 ) 60%,
			rgba( 255, 255, 255, 0.12 ) 100% );
	box-shadow: inset 0 0 30px rgba( 0, 0, 0, 0.45 );
	transition: transform 0.75s cubic-bezier( 0.32, 0.72, 0.16, 1 );
}

/* The handle, on the swinging edge. */
.tt3d__door::after {
	content: "";
	position: absolute;
	right: 6px;
	top: 32%;
	width: 16px;
	height: 32%;
	border-radius: 5px;
	background: linear-gradient( 90deg, #2a2c31, #4a4d55 55%, #1b1d21 );
}

.tt3d.is-open { --door: -114deg; }

.tt3d__btn--go {
	border-color: rgba( 255, 255, 255, 0.42 );
	font-weight: 500;
}

@media ( prefers-reduced-motion: reduce ) {
	.tt3d__door { transition: none; }
}

/* Bottle viewer: poster fallback, zoom, and a stage that shows glass edges. */
.tt-bv__stage {
	position: relative;
	overflow: hidden;
}

.tt-bv__poster {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.tt-bv__canvas {
	position: relative;
	z-index: 1;
	opacity: 0;
	transition: opacity 0.25s ease;
}

.tt-bv.is-ready .tt-bv__canvas { opacity: 1; }
.tt-bv.is-ready .tt-bv__poster { opacity: 0; }
.tt-bv.is-failed .tt-bv__canvas { display: none; }
.tt-bv.is-failed .tt-bv__poster { opacity: 1; }

.tt-bv__hint { z-index: 2; }

.tt-bv__btn[hidden] { display: none; }

.tt-bv__btn--zoom {
	margin-inline-start: 6px;
}

.tt-bv__faces {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

@media ( prefers-reduced-motion: reduce ) {
	.tt-bv__canvas { transition: none; }
}

.tt-bv__stage:focus-visible {
	outline: 3px solid #7fb2ff;
	outline-offset: 3px;
}

/* =========================================================================
   Named sections. One short paragraph, the model at full width, a compact
   gallery under it, and the production detail behind a disclosure.
   ====================================================================== */

.tt-case { padding-block: clamp( 3rem, 6vw, 5.5rem ); }
.tt-case__head { max-width: 56ch; }
.tt-case__title { margin-top: 0; max-width: 22ch; }
.tt-case__stand { margin-top: 1.1rem; max-width: 54ch; color: rgba( 255, 255, 255, 0.78 ); }
.tt-case__live { margin-top: clamp( 1.8rem, 3.5vw, 2.8rem ); }

.tt-case__live .tt-bv__stage { max-width: 560px; margin-inline: auto; }
.tt-case__live .tt-bv__bar,
.tt-case__live .tt-bv__flavours,
.tt-case__live .tt-bv__models { max-width: 560px; margin-inline: auto; justify-content: center; }
.tt-case__live .tt3d__stage { aspect-ratio: 4 / 3; max-width: 900px; margin-inline: auto; }
.tt-case__live .tt3d__bar { max-width: 900px; margin-inline: auto; justify-content: center; }

@media ( max-width: 640px ) {
	.tt-case__live .tt3d__stage { aspect-ratio: 1 / 1; }
}

/* Compact galleries, so the page alternates instead of repeating a layout. */
.tt-strip { margin-top: clamp( 1.6rem, 3vw, 2.4rem ); display: grid; gap: clamp( 0.7rem, 1.5vw, 1.1rem ); grid-template-columns: 1fr; }
@media ( min-width: 640px ) { .tt-strip--2, .tt-strip--3 { grid-template-columns: repeat( 2, 1fr ); } }
@media ( min-width: 960px ) { .tt-strip--3 { grid-template-columns: repeat( 3, 1fr ); } }

.tt-shot__zoom { position: relative; display: block; }
.tt-shot__hint {
	position: absolute; right: 0.6rem; bottom: 0.6rem;
	padding: 0.35rem 0.75rem; border-radius: 999px;
	background: rgba( 0, 0, 0, 0.68 ); color: #fff; font-size: 0.72rem;
	opacity: 0; transition: opacity 0.2s ease;
}
.tt-shot__zoom:hover .tt-shot__hint,
.tt-shot__zoom:focus-visible .tt-shot__hint { opacity: 1; }
.tt-shot__zoom:focus-visible { outline: 3px solid #7fb2ff; outline-offset: 3px; }
.tt-shot figcaption { color: rgba( 255, 255, 255, 0.62 ); }

/* Production notes stay on the page but out of the read. */
.tt-case__notes { margin-top: clamp( 1.6rem, 3vw, 2.2rem ); border-top: 1px solid rgba( 255, 255, 255, 0.09 ); }
.tt-case__notes summary {
	list-style: none; cursor: pointer; padding: 1rem 0; min-height: 44px;
	display: flex; align-items: center; gap: 0.6rem;
	font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase;
	color: rgba( 255, 255, 255, 0.62 );
}
.tt-case__notes summary::-webkit-details-marker { display: none; }
.tt-case__notes summary::after { content: '+'; font-size: 1rem; letter-spacing: 0; }
.tt-case__notes[open] summary::after { content: '\2212'; }
.tt-case__notes summary:hover { color: #fff; }
.tt-case__notes summary:focus-visible { outline: 2px solid #7fb2ff; outline-offset: 2px; }
.tt-case__notes-body p { margin: 0 0 1.1rem; max-width: 64ch; font-size: 0.92rem; line-height: 1.7; color: rgba( 255, 255, 255, 0.62 ); }
.tt-case__notes-body p:last-child { margin-bottom: 0; }
.tt-case__credit { font-style: italic; }

/* Closing enquiry. */
.project-cta h2 { max-width: 22ch; }

/* Full size image viewing. */
.tt-lb { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; background: rgba( 6, 7, 10, 0.95 ); padding: clamp( 1rem, 4vw, 3rem ); }
.tt-lb[hidden] { display: none; }
.tt-lb img { max-width: 100%; max-height: 82vh; width: auto; height: auto; display: block; border-radius: 10px; }
.tt-lb__cap { margin: 0.9rem 0 0; text-align: center; font-size: 0.85rem; color: rgba( 255, 255, 255, 0.72 ); }
.tt-lb__close {
	position: absolute; top: 1rem; right: 1rem;
	min-width: 44px; min-height: 44px; border-radius: 999px;
	border: 1px solid rgba( 255, 255, 255, 0.32 ); background: rgba( 0, 0, 0, 0.45 );
	color: #fff; font-size: 1.2rem; line-height: 1; cursor: pointer;
}
.tt-lb__close:focus-visible { outline: 2px solid #7fb2ff; outline-offset: 2px; }

/* Controls: one selected state, readable everywhere. */
.tt3d__btn { color: rgba( 255, 255, 255, 0.80 ); border-color: rgba( 255, 255, 255, 0.24 ); }
.tt3d__btn:hover { color: #fff; border-color: rgba( 255, 255, 255, 0.5 ); }
.tt3d__btn[aria-pressed="true"] { background: #fff; color: #10121a; border-color: transparent; font-weight: 500; }
.tt-bv__btn { color: rgba( 255, 255, 255, 0.80 ); border-color: rgba( 255, 255, 255, 0.24 ); }
.tt-bv__btn[aria-pressed="true"] { background: #fff; color: #10121a; border-color: transparent; font-weight: 500; }
.tt-bv__chip { color: rgba( 255, 255, 255, 0.80 ); border-color: rgba( 255, 255, 255, 0.22 ); }
.tt-bv__chip[aria-pressed="true"] { background: #fff; color: #10121a; border-color: transparent; font-weight: 500; }
.tt-bv__chip[aria-pressed="true"]::before { box-shadow: 0 0 0 1px rgba( 0, 0, 0, 0.3 ); }
.tt-bv__tab { opacity: 1; color: rgba( 255, 255, 255, 0.72 ); }
.tt-bv__tab:hover { color: #fff; }
.tt-bv__tab[aria-pressed="true"] { background: #fff; color: #10121a; font-weight: 500; }
.tt-bv__hint, .tt3d__hint { color: rgba( 255, 255, 255, 0.92 ); }
.tt-bv__boot { color: rgba( 255, 255, 255, 0.6 ); }

/* A portrait hero is a product plate, not a billboard: cap it and centre it. */
.project__hero { display: grid; place-items: center; background: rgba( 255, 255, 255, 0.02 ); }
.project__hero img { width: auto; max-width: 100%; max-height: min( 72vh, 620px ); }
@media ( max-width: 700px ) {
	.project__hero img { max-height: 58vh; }
}

/* Match the plate to the studio ground in the shot so it reads as one card. */
/* No extended ground: the card is the photograph, so there is no seam. */
.project__hero {
	background: none;
	width: -moz-fit-content;
	width: fit-content;
	max-width: 100%;
	margin-inline: auto;
	border-color: rgba( 255, 255, 255, 0.12 );
}

/* =========================================================================
   Materials. The artwork is never touched; everything here is the object it
   is printed on: board thickness, fold shading, glass, metal and contact.
   ====================================================================== */

/* Carton. Corrugated board, not paper on a plane. */
.tt3d--carton .tt3d__face {
	outline: 0;
	box-shadow:
		inset 0 0 0 1px rgba( 0, 0, 0, 0.30 ),
		inset 0 1px 0 rgba( 255, 255, 255, 0.30 ),
		inset 0 -3px 7px rgba( 0, 0, 0, 0.16 ),
		inset 0 0 40px rgba( 0, 0, 0, 0.07 );
}
.tt3d--carton .tt3d__face::after {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image:
		repeating-linear-gradient( 90deg, rgba( 0, 0, 0, 0.030 ) 0 1px, rgba( 255, 255, 255, 0.016 ) 1px 4px ),
		linear-gradient( 172deg, rgba( 255, 255, 255, 0.07 ), rgba( 0, 0, 0, 0.06 ) );
}
.tt3d--carton .tt3d__shadow {
	filter: blur( 14px );
	background: radial-gradient( closest-side, rgba( 0, 0, 0, 0.78 ), rgba( 0, 0, 0, 0 ) 76% );
}

/* Chiller. Shelf lips, hinges, a light bar, and bottles that sit down. */
.tt3d--chiller .tt3d__lip {
	outline: 0;
	box-shadow: inset 0 1px 0 rgba( 255, 255, 255, 0.85 ), inset 0 -3px 5px rgba( 0, 0, 0, 0.35 );
}
.tt3d--chiller .tt3d__hinge {
	outline: 0;
	border-radius: 3px;
	background-image: linear-gradient( 90deg, #22242a, #6d727c 45%, #1b1d22 );
	box-shadow: 0 1px 4px rgba( 0, 0, 0, 0.6 );
}
.tt3d--chiller .tt3d__lamp {
	outline: 0;
	border-radius: 4px;
	box-shadow: 0 0 26px rgba( 220, 240, 255, 0.85 ), 0 0 60px rgba( 180, 215, 240, 0.5 );
}
.tt3d--chiller .tt3d__cut::after {
	content: '';
	position: absolute;
	left: 50%;
	bottom: -3px;
	width: 118%;
	height: 9px;
	translate: -50% 0;
	border-radius: 50%;
	background: radial-gradient( closest-side, rgba( 0, 0, 0, 0.62 ), rgba( 0, 0, 0, 0 ) );
	pointer-events: none;
}
.tt3d--chiller .tt3d__shelf { box-shadow: 0 0 26px rgba( 200, 225, 240, 0.45 ); }

/* Promo counter. A worktop with an edge, and panels with a printed surface. */
.tt3d--booth .tt3d__lip {
	outline: 0;
	box-shadow: inset 0 1px 0 rgba( 255, 255, 255, 0.9 ), inset 0 -4px 6px rgba( 0, 0, 0, 0.28 );
}
.tt3d--booth .tt3d__face {
	outline: 0;
	box-shadow: inset 0 0 0 1px rgba( 0, 0, 0, 0.32 ), inset 0 -6px 16px rgba( 0, 0, 0, 0.18 );
}
.tt3d--booth .tt3d__face::after {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image: linear-gradient( 168deg, rgba( 255, 255, 255, 0.08 ), rgba( 0, 0, 0, 0.10 ) );
}
.tt3d--booth .tt3d__shadow {
	filter: blur( 18px );
	background: radial-gradient( closest-side, rgba( 0, 0, 0, 0.8 ), rgba( 0, 0, 0, 0 ) 74% );
}

/* A cut out bottle is artwork on a plane, so it must not take an edge. */
.tt3d__cut, .tt3d__lamp, .tt3d__hinge { box-shadow: none; }
.tt3d--booth .tt3d__cut::after, .tt3d--carton .tt3d__cut::after { content: none; }
.tt3d--booth .tt3d__cut, .tt3d--carton .tt3d__cut { box-shadow: none; }
.tt3d--chiller .tt3d__cut::before { content: none; }
.tt3d--booth .tt3d__cut::after { display: none; }


/* =========================================================================
   Al Rafidi. Kraft paper and printed board, on a warm studio ground.
   ====================================================================== */

.tt3d--bag .tt3d__stage,
.tt3d--rfbox .tt3d__stage {
	background:
		radial-gradient( 110% 82% at 50% 15%, rgba( 255, 238, 214, 0.17 ), rgba( 255, 238, 214, 0 ) 60% ),
		linear-gradient( 180deg, #2b2620 0%, #16130f 100% );
}

/* Kraft: warm fibre, a soft edge, and a crease down each gusset. */
.rf-paper {
	outline: 0;
	box-shadow:
		inset 0 0 0 1px rgba( 62, 42, 26, 0.28 ),
		inset 0 -12px 24px rgba( 62, 38, 16, 0.13 );
}
.rf-paper::after {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image:
		repeating-linear-gradient( 0deg, rgba( 92, 62, 36, 0.028 ) 0 1px, rgba( 255, 240, 220, 0.020 ) 1px 3px ),
		linear-gradient( 172deg, rgba( 255, 245, 230, 0.10 ), rgba( 62, 38, 16, 0.10 ) );
}
.rf-gusset::before {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient( 90deg,
		rgba( 0, 0, 0, 0.22 ) 0%,
		rgba( 255, 245, 230, 0.10 ) 47%,
		rgba( 255, 245, 230, 0.10 ) 53%,
		rgba( 0, 0, 0, 0.22 ) 100% );
}
.rf-bagtop { box-shadow: inset 0 8px 16px rgba( 52, 30, 12, 0.38 ); }
.tt3d--bag .tt3d__shadow {
	filter: blur( 14px );
	background: radial-gradient( closest-side, rgba( 0, 0, 0, 0.74 ), rgba( 0, 0, 0, 0 ) 76% );
}

/* Printed board: a crisp edge, a lit top arris and a little depth. */
.rf-board {
	outline: 0;
	box-shadow:
		inset 0 0 0 1px rgba( 0, 0, 0, 0.38 ),
		inset 0 1px 0 rgba( 255, 255, 255, 0.18 ),
		inset 0 -8px 18px rgba( 0, 0, 0, 0.22 );
}
.rf-board::after {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image: linear-gradient( 168deg, rgba( 255, 255, 255, 0.07 ), rgba( 0, 0, 0, 0.11 ) );
}
.tt3d--rfbox .tt3d__shadow {
	filter: blur( 16px );
	background: radial-gradient( closest-side, rgba( 0, 0, 0, 0.78 ), rgba( 0, 0, 0, 0 ) 74% );
}

/* A model should fit a laptop screen without scrolling past its own controls. */
.tt-case__live .tt3d__stage { max-height: min( 74vh, 660px ); }
.tt-case__live .tt-bv__stage { max-height: min( 78vh, 700px ); }

/* The folded top band of the paper bag, on the printed faces only. */
.rf-paper:not(.rf-gusset):not(.rf-bagtop)::before {
	content: '';
	position: absolute;
	left: 0; right: 0; top: 0;
	height: 11%;
	pointer-events: none;
	background: linear-gradient( 180deg,
		rgba( 60, 35, 15, 0.28 ) 0%,
		rgba( 60, 35, 15, 0.04 ) 58%,
		rgba( 255, 245, 230, 0.12 ) 92%,
		rgba( 60, 35, 15, 0.20 ) 100% );
}

/* Static fallback: shown when the browser has no 3D, or has no JavaScript. */
.tt3d__flat { display: none; margin: 0; }
.tt3d.is-flat .tt3d__flat { display: block; }
.tt3d__flat img,
.tt3d__noscript {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 18px;
}
