/* ==========================================================================
   idigital — main stylesheet (mobile first, direction agnostic)
   The whole palette derives from one number: --hue (set from the Customizer).
   ========================================================================== */

/* The site's face: Abar ( the owner's licensed copy, variable: weight 100–950 ). Vazirmatn stays as the fallback. */
@font-face {
	font-family: "Abar";
	src: url("../fonts/Abar-VF.woff2") format("woff2");
	font-weight: 100 950;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Vazirmatn";
	src: url("../fonts/Vazirmatn-Variable.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

/* Display faces for the brand name (each is downloaded only when it is the one chosen). SIL Open Font License, see the OFL files. */
@font-face {
	font-family: "idg Literata";
	src: url("../fonts/Literata-LightItalic.woff2") format("woff2");
	font-weight: 300;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: "idg Jost";
	src: url("../fonts/Jost-Variable.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "idg Cardo";
	src: url("../fonts/Cardo-Italic.woff2") format("woff2");
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}

/* The face the brand name is set in (Customizer, or the live settings panel). */
html,
html[data-brand-font="literata"] {
	--brand-font: "idg Literata", Georgia, "Times New Roman", serif;
	--brand-style: italic;
	--brand-weight: 300;
	--brand-bold: 300;
	--brand-size: 1.08;
	--brand-track: 0.005em;
}

html[data-brand-font="jost"] {
	--brand-font: "idg Jost", system-ui, sans-serif;
	--brand-style: normal;
	--brand-weight: 300;
	--brand-bold: 600;
	--brand-size: 1;
	--brand-track: 0.06em;
}

html[data-brand-font="cardo"] {
	--brand-font: "idg Cardo", Georgia, serif;
	--brand-style: italic;
	--brand-weight: 400;
	--brand-bold: 400;
	--brand-size: 1.1;
	--brand-track: 0.01em;
}

html[data-brand-font="vazirmatn"] {
	--brand-font: "Vazirmatn", system-ui, sans-serif;
	--brand-style: normal;
	--brand-weight: 300;
	--brand-bold: 700;
	--brand-size: 1;
	--brand-track: 0.01em;
}

:root {
	--hue: 223;
	--h2: calc(var(--hue) + 42);
	--accent: hsl(var(--hue) 92% 60%);
	--accent-2: hsl(var(--h2) 100% 82%);
	--accent-ink: hsl(var(--hue) 82% 42%);
	--paper: hsl(var(--hue) 75% 97%);
	--paper-2: hsl(var(--hue) 65% 93%);
	--card: #fff;
	--ink: hsl(var(--hue) 55% 12%);
	--ink-2: hsl(var(--hue) 22% 40%);
	--line: hsl(var(--hue) 40% 20% / 0.14);
	--font: "Abar", "Vazirmatn", system-ui, -apple-system, "Segoe UI", Roboto, Tahoma, sans-serif;
	--mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
	--label-font: var(--mono);
	--ease: cubic-bezier(0.2, 0.8, 0.2, 1);
	--ease-in: cubic-bezier(0.6, 0, 0.9, 0.4);
	--ease-io: cubic-bezier(0.65, 0, 0.35, 1);
	--pad: clamp(18px, 4.6vw, 44px);
	--dock-h: 58px;
	--safe-b: env(safe-area-inset-bottom, 0px);
	--dirx: 1;
}

[dir="rtl"] {
	--dirx: -1;
	--label-font: var(--font);
}

html[data-theme="dark"] {
	--accent-ink: hsl(var(--hue) 100% 78%);
	--paper: hsl(var(--hue) 42% 6%);
	--paper-2: hsl(var(--hue) 36% 11%);
	--card: hsl(var(--hue) 32% 13%);
	--ink: hsl(var(--hue) 70% 95%);
	--ink-2: hsl(var(--hue) 28% 70%);
	--line: hsl(var(--hue) 60% 90% / 0.15);
}

/* Base --------------------------------------------------------------------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	background: hsl(var(--hue) 58% 76%);
}

html[data-theme="dark"] {
	background: hsl(var(--hue) 52% 8%);
}

body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.8;
	color: var(--ink);
	background: transparent;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	-webkit-tap-highlight-color: transparent;
}

[hidden] {
	display: none !important;
}

img,
svg,
video,
canvas {
	max-width: 100%;
}

a {
	color: var(--accent-ink);
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}

::selection {
	background: var(--accent);
	color: #fff;
}

.screen-reader-text,
.idg-skip:not(:focus) {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.idg-skip:focus {
	position: fixed;
	z-index: 200;
	top: 12px;
	inset-inline-start: 12px;
	padding: 10px 16px;
	border-radius: 12px;
	background: var(--ink);
	color: var(--paper);
}

.idg-lock,
.idg-lock body {
	overflow: hidden;
}

.idg-icon {
	display: block;
	width: 22px;
	height: 22px;
	flex: none;
}

.idg-flip {
	transform: scaleX(var(--dirx));
}

/* 3D world ------------------------------------------------------------------ */

.idg-world {
	position: fixed;
	inset: 0;
	z-index: 0;
	display: block;
	width: 100vw;
	height: 100vh;
	height: 100lvh;
	pointer-events: none;
	opacity: 0;
	transition: opacity 1.4s var(--ease);
}

.is-entered .idg-world {
	opacity: 1;
}

/* No WebGL: a painted sky keeps the page usable. */
.idg-nogl .idg-world {
	display: none;
}

.idg-nogl body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 0;
	background:
		radial-gradient(60% 40% at 50% 38%, hsl(var(--h2) 100% 88% / 0.9), transparent 70%),
		linear-gradient(to bottom, hsl(var(--hue) 62% 62%), hsl(var(--h2) 78% 84%) 52%, hsl(var(--hue) 55% 44%) 52.2%, hsl(var(--hue) 70% 26%));
}

.idg-app {
	position: relative;
	z-index: 1;
}

/* Film look: a darker rim like a camera lens, and fine grain over everything ---- */

.idg-vignette,
.idg-grain {
	position: fixed;
	pointer-events: none;
}

.idg-vignette {
	inset: 0;
	z-index: 40;
	background: radial-gradient(ellipse 78% 72% at 50% 48%, transparent 46%, rgb(6 3 14 / 0.34) 82%, rgb(3 1 8 / 0.8) 100%);
	/* Only over the scene: it fades as the page's sections cover the screen ( --sheet, set in assets/js/app.js ). */
	opacity: calc(var(--vig, 0.5) * (1 - var(--sheet, 0)));
}

/* The grain is one tile of specks (made in app.js), bigger than the screen so it can jump about. */
.idg-grain {
	inset: -64px;
	z-index: 90;
	background-repeat: repeat;
	background-size: var(--grain-size, 96px);
	opacity: var(--grain, 0.36);
	animation: idg-grain 0.8s steps(1) infinite;
	will-change: transform;
}

@keyframes idg-grain {
	0% {
		transform: translate3d(0, 0, 0);
	}
	12.5% {
		transform: translate3d(-31px, 43px, 0);
	}
	25% {
		transform: translate3d(37px, -49px, 0);
	}
	37.5% {
		transform: translate3d(-53px, -27px, 0);
	}
	50% {
		transform: translate3d(41px, 57px, 0);
	}
	62.5% {
		transform: translate3d(-29px, -61px, 0);
	}
	75% {
		transform: translate3d(59px, 19px, 0);
	}
	87.5% {
		transform: translate3d(-47px, 33px, 0);
	}
}

/* The page opens: a canvas (assets/js/burn.js) draws the sheet and burns it away; the preloader only lets go of its text. */
.idg-burn {
	position: fixed;
	inset: 0;
	z-index: 99;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.idg-loader[data-state="burn"] {
	background: transparent;
	pointer-events: none;
	transition: none;
}

.idg-loader[data-state="burn"] .idg-loader__center,
.idg-loader[data-state="burn"] .idg-loader__progress {
	opacity: 0;
	transition: opacity 0.5s var(--ease);
}

.idg-burning .idg-world {
	transition: none;
}

/* Preloader ----------------------------------------------------------------- */

.idg-loader {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: grid;
	place-items: center;
	background: var(--paper);
	color: var(--ink);
	transition: opacity 1s var(--ease), visibility 0s 1s;
}

.idg-loader[data-state="done"] {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.idg-loader__center {
	padding: 0 var(--pad);
	text-align: center;
}

.idg-loader__brand {
	margin: 0;
	font-family: var(--brand-font);
	font-size: calc(clamp(2.2rem, 10vw, 3.6rem) * var(--brand-size, 1));
	font-style: var(--brand-style, normal);
	font-weight: var(--brand-weight, 250);
	line-height: 1.2;
	letter-spacing: var(--brand-track, 0.01em);
}

.idg-loader__tagline {
	margin: 0.7rem auto 0;
	max-width: 19rem;
	font-size: 0.8rem;
	line-height: 1.9;
	color: var(--ink-2);
}

.idg-loader__progress {
	position: absolute;
	inset-inline: var(--pad);
	bottom: calc(26px + var(--safe-b));
	transition: opacity 0.5s;
}

.idg-loader__bar {
	height: 2px;
	overflow: hidden;
	background: var(--line);
}

.idg-loader__bar i {
	display: block;
	height: 100%;
	background: var(--ink);
	transform: scaleX(var(--p, 0));
	transform-origin: left center;
	transition: transform 0.35s linear;
}

[dir="rtl"] .idg-loader__bar i {
	transform-origin: right center;
}

.idg-loader__meta {
	display: flex;
	justify-content: space-between;
	margin-top: 10px;
	font-size: 0.72rem;
	color: var(--ink-2);
}

.idg-loader__pct {
	font-family: var(--mono);
	color: var(--accent-ink);
}

.idg-loader__enter {
	position: absolute;
	inset-inline: 0;
	bottom: calc(34px + var(--safe-b));
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(14px);
	transition: opacity 0.6s var(--ease), transform 0.8s var(--ease), visibility 0s 0.6s;
}

.idg-loader[data-state="ready"] .idg-loader__enter {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition-delay: 0.15s, 0.15s, 0s;
}

.idg-loader[data-state="ready"] .idg-loader__progress {
	opacity: 0;
}

/* Buttons, chips ------------------------------------------------------------ */

.idg-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.7em;
	padding: 0.85em 1.5em;
	border: 1px solid hsl(var(--hue) 85% 58% / 0.55);
	border-radius: 999px;
	font: 600 0.95rem/1.3 var(--font);
	color: hsl(var(--hue) 72% 24%);
	text-decoration: none;
	cursor: pointer;
	background: linear-gradient(110deg, hsl(var(--hue) 100% 97%), hsl(var(--h2) 100% 91%) 35%, hsl(var(--hue) 95% 87%) 60%, hsl(var(--hue) 100% 97%));
	background-size: 260% 100%;
	box-shadow: 0 8px 26px hsl(var(--hue) 85% 52% / 0.2), inset 0 1px 0 hsl(0 0% 100% / 0.6);
	animation: idg-sheen 7s linear infinite;
	transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
	-webkit-user-select: none;
	user-select: none;
}

.idg-btn--lg {
	padding: 1em 1.9em;
	font-size: 1rem;
}

.idg-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 34px hsl(var(--hue) 85% 52% / 0.3), inset 0 1px 0 hsl(0 0% 100% / 0.6);
}

.idg-btn:active {
	transform: scale(0.97);
}

.idg-btn .idg-icon {
	width: 1.2em;
	height: 1.2em;
	transition: transform 0.45s var(--ease);
}

.idg-btn:hover .idg-icon--corner {
	transform: translateX(calc(4px * var(--dirx))) scaleX(var(--dirx));
}

html[data-theme="dark"] .idg-btn {
	color: #fff;
	border-color: hsl(var(--hue) 100% 78% / 0.4);
	background: linear-gradient(110deg, hsl(var(--hue) 72% 22%), hsl(var(--h2) 72% 36%) 35%, hsl(var(--hue) 84% 42%) 60%, hsl(var(--hue) 72% 22%));
	background-size: 260% 100%;
}

@keyframes idg-sheen {
	to {
		background-position: -260% 0;
	}
}

.idg-link {
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
	padding: 6px 2px;
	border: 0;
	border-bottom: 1px solid currentColor;
	background: none;
	font: 500 0.9rem/1.4 var(--font);
	color: inherit;
	cursor: pointer;
}

.idg-link .idg-icon {
	width: 18px;
	height: 18px;
}

.idg-chip,
.idg-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	margin: 0 0 1.1rem;
	padding: 0.34em 0.95em;
	border-radius: 999px;
	background: var(--accent);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 600;
	line-height: 1.6;
}

.idg-eyebrow i {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #fff;
}

/* Word reveal ---------------------------------------------------------------- */

.w {
	display: inline-block;
	overflow: hidden;
	vertical-align: bottom;
	padding-block: 0.26em;
	margin-block: -0.26em;
}

.wi {
	display: inline-block;
	transform: translateY(125%);
}

.is-in .wi,
.is-active .wi {
	transform: none;
	transition: transform 1s var(--ease);
	transition-delay: calc(var(--i, 0) * 42ms + var(--d, 0ms));
}

[data-reveal] {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity 0.9s var(--ease), transform 1.1s var(--ease);
}

[data-reveal].is-in {
	opacity: 1;
	transform: none;
}

html:not(.js) .wi,
html:not(.js) [data-reveal] {
	opacity: 1;
	transform: none;
}

/* Story ---------------------------------------------------------------------- */

.idg-story {
	position: relative;
	height: calc(var(--chapters, 5) * 170vh);
	height: calc(var(--chapters, 5) * 170lvh);
}

/* Without the text slides the scene is on its own, and the way through it is shorter. */
.idg-story--bare {
	height: calc(var(--chapters, 5) * 115vh);
	height: calc(var(--chapters, 5) * 115lvh);
}

.idg-story__sticky {
	position: sticky;
	top: 0;
	height: 100vh;
	height: 100svh;
	overflow: hidden;
}

.idg-story__veil,
.idg-hero__veil {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, hsl(var(--hue) 78% 13% / 0.7) 0%, hsl(var(--hue) 78% 16% / 0.36) 34%, transparent 62%);
	pointer-events: none;
}

.idg-chapter {
	position: absolute;
	inset-inline: var(--pad);
	bottom: calc(var(--dock-h) + var(--safe-b) + 44px);
	max-width: 46rem;
	color: #fff;
	visibility: hidden;
}

.idg-chapter.is-active,
.idg-chapter.is-leaving {
	visibility: visible;
}

.idg-chapter.is-active {
	--d: 280ms;
}

.idg-chapter.is-leaving .wi {
	transform: translateY(-70%);
	opacity: 0;
	transition: transform 0.4s var(--ease-in), opacity 0.3s linear;
	transition-delay: 0s;
}

.idg-chapter .idg-chip {
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.3s, transform 0.3s;
}

.idg-chapter.is-active .idg-chip {
	opacity: 1;
	transform: none;
	transition: opacity 0.6s 0.25s, transform 0.8s var(--ease) 0.25s;
}

.idg-chapter__kicker {
	max-width: 21rem;
	margin: 0 0 1rem;
	font-size: 0.8rem;
	font-weight: 500;
	line-height: 1.8;
}

.idg-chapter__title,
.idg-hero__title {
	margin: 0;
	font-size: clamp(2.05rem, 9.4vw, 5.2rem);
	font-weight: 800;
	line-height: 1.3;
	text-wrap: balance;
	text-shadow: 0 2px 30px hsl(var(--hue) 80% 12% / 0.35);
}

.idg-chapter__title em,
.idg-hero__title em,
.idg-h2 em {
	font-style: normal;
	font-weight: 200;
}

[dir="ltr"] .idg-chapter__title,
[dir="ltr"] .idg-hero__title,
[dir="ltr"] .idg-h2 {
	line-height: 1.06;
	letter-spacing: -0.03em;
}

.idg-chapter__text,
.idg-hero__text {
	max-width: 25rem;
	margin: 1.1rem 0 0;
	font-size: 0.88rem;
	line-height: 1.95;
}

.idg-story__hint {
	display: none;
}

.idg-story__dots {
	position: absolute;
	inset-inline-end: calc(var(--pad) - 6px);
	top: 50%;
	display: flex;
	flex-direction: column;
	gap: 9px;
	margin: 0;
	padding: 0;
	list-style: none;
	transform: translateY(-50%);
}

.idg-story__dots li {
	width: 4px;
	height: 4px;
	border-radius: 4px;
	background: hsl(0 0% 100% / 0.5);
	transition: height 0.5s var(--ease), background 0.5s;
}

.idg-story__dots li.is-on {
	height: 22px;
	background: #fff;
}

@media (min-width: 820px) {
	.idg-story__hint {
		position: absolute;
		inset-inline-end: var(--pad);
		bottom: calc(var(--dock-h) + var(--safe-b) + 44px);
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 12px;
		color: #fff;
		font-size: 0.72rem;
		transition: opacity 0.6s;
	}

	.idg-story__hint i {
		width: 1px;
		height: 52px;
		background: linear-gradient(#fff, transparent);
		transform-origin: top;
		animation: idg-hint 2s var(--ease-io) infinite;
	}

	.idg-story.is-scrolled .idg-story__hint {
		opacity: 0;
	}
}

@keyframes idg-hint {
	0% {
		transform: scaleY(0);
	}
	50% {
		transform: scaleY(1);
		transform-origin: top;
	}
	51% {
		transform-origin: bottom;
	}
	100% {
		transform: scaleY(0);
		transform-origin: bottom;
	}
}

/* Inner page hero ------------------------------------------------------------ */

.idg-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 70vh;
	min-height: 70svh;
	padding: 120px var(--pad) 72px;
	color: #fff;
}

.idg-hero__inner {
	position: relative;
	max-width: 52rem;
}

.idg-hero__title {
	font-size: clamp(2rem, 8.6vw, 4.6rem);
}

/* Sheet + sections ----------------------------------------------------------- */

.idg-sheet {
	position: relative;
	z-index: 2;
	margin-top: -28px;
	color: var(--ink);
}

.idg-sheet > * {
	background: var(--paper);
	transition: background-color 0.7s var(--ease), color 0.7s var(--ease);
}

.idg-sheet > *:first-child {
	border-radius: 28px 28px 0 0;
	box-shadow: 0 -24px 60px hsl(var(--hue) 70% 14% / 0.22);
}

.idg-sheet > * + * {
	margin-top: -1px;
}

.idg-section {
	padding: clamp(60px, 13vw, 120px) var(--pad);
}

.idg-section--narrow > * {
	max-width: 46rem;
	margin-inline: auto;
}

.idg-section__head {
	margin-bottom: clamp(30px, 7vw, 64px);
}

.idg-section__head--split {
	display: grid;
	gap: 18px;
}

.idg-section__foot {
	display: flex;
	justify-content: center;
	margin-top: clamp(36px, 8vw, 64px);
}

.idg-h2 {
	margin: 0;
	font-size: clamp(2rem, 8.6vw, 4.4rem);
	font-weight: 800;
	line-height: 1.32;
	text-wrap: balance;
}

.idg-h2--xl {
	font-size: clamp(2.2rem, 10vw, 5.4rem);
}

.idg-lead {
	margin: 0 0 1.6rem;
	font-size: clamp(1.05rem, 4.5vw, 1.45rem);
	line-height: 1.85;
}

.idg-note {
	max-width: 27rem;
	margin: 0;
	font-size: 0.84rem;
	line-height: 2;
	color: var(--ink-2);
}

@media (min-width: 900px) {
	.idg-section__head--split {
		grid-template-columns: 1.5fr 1fr;
		align-items: end;
		gap: 48px;
	}
}

/* Services -------------------------------------------------------------------- */

.idg-services__body {
	display: grid;
	gap: 34px;
}

.idg-services__list {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: svc;
	border-top: 1px solid var(--line);
}

.idg-services__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 15px 0;
	border-bottom: 1px solid var(--line);
	font-size: clamp(1.02rem, 4.5vw, 1.4rem);
	opacity: 0.32;
	counter-increment: svc;
	transition: opacity 0.5s, padding 0.6s var(--ease), color 0.4s;
}

.idg-services__item::after {
	content: "(" counter(svc, decimal-leading-zero) ")";
	font: 500 0.7rem/1 var(--mono);
	color: var(--ink-2);
	direction: ltr;
}

.idg-services__item.is-near {
	opacity: 0.66;
}

.idg-services__item.is-active {
	opacity: 1;
	padding-inline-start: 16px;
	color: var(--accent-ink);
}

@media (min-width: 900px) {
	.idg-services__body {
		grid-template-columns: 1fr 1fr;
		gap: 72px;
		align-items: start;
	}

	.idg-services__intro {
		position: sticky;
		top: 22vh;
	}
}

/* Project cards ---------------------------------------------------------------- */

.idg-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 34px 18px;
}

.idg-card__link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.idg-card__cover {
	position: relative;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	border-radius: 22px;
	background: var(--paper-2);
	transform: translateZ(0);
}

.idg-card__cover img,
.idg-card__cover canvas {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.3s var(--ease);
}

.idg-card__cover canvas {
	position: absolute;
	inset: 0;
	image-rendering: pixelated;
}

.idg-card__link:hover .idg-card__cover img,
.idg-card__link:hover .idg-card__art {
	transform: scale(1.06);
}

.idg-card__art {
	--a: calc(var(--hue) + var(--n, 1) * 26);
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background:
		radial-gradient(120% 90% at 18% 8%, hsl(var(--a) 96% 80%) 0%, transparent 56%),
		radial-gradient(90% 80% at 92% 96%, hsl(calc(var(--a) + 62) 92% 68%) 0%, transparent 60%),
		linear-gradient(160deg, hsl(calc(var(--a) - 22) 72% 30%), hsl(var(--a) 82% 54%));
	transition: transform 1.3s var(--ease);
}

.idg-card__art::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(hsl(0 0% 100% / 0.16) 1px, transparent 1.2px);
	background-size: 5px 5px;
}

.idg-card__art span {
	font-size: clamp(4.4rem, 24vw, 7.5rem);
	font-weight: 200;
	line-height: 1;
	color: hsl(0 0% 100% / 0.92);
}

.idg-card__tags {
	margin: 14px 0 2px;
	font: 500 0.7rem/1.6 var(--label-font);
	color: var(--ink-2);
	text-transform: uppercase;
}

.idg-card__title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.6;
}

@media (min-width: 600px) {
	.idg-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1000px) {
	.idg-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 52px 26px;
	}
}

/* Awards ------------------------------------------------------------------------ */

.idg-awards__groups {
	display: grid;
	gap: 34px;
}

.idg-awards__name {
	display: flex;
	align-items: center;
	gap: 0.6em;
	margin: 0 0 8px;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--ink-2);
}

.idg-awards__name span {
	font: 500 0.66rem/1 var(--mono);
}

.idg-awards__list {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--ink);
}

.idg-awards__list li {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 0;
	border-bottom: 1px solid var(--line);
	font-size: 1.02rem;
	transition: padding 0.6s var(--ease), color 0.3s;
}

.idg-awards__list li:hover {
	padding-inline: 10px;
	color: var(--accent-ink);
}

.idg-awards__list b {
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

@media (min-width: 900px) {
	.idg-awards__groups {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 52px 72px;
	}
}

/* Contact + footer ---------------------------------------------------------------- */

.idg-contact {
	padding-bottom: calc(var(--dock-h) + 56px + var(--safe-b));
	border-top: 1px solid var(--line);
}

.idg-contact:not(:last-child) {
	padding-bottom: 28px;
	border-radius: 0 0 28px 28px;
}

.idg-contact__cta {
	display: grid;
	justify-items: start;
	gap: 22px;
	margin-top: 30px;
}

.idg-contact__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 36px 20px;
	margin-top: clamp(48px, 11vw, 96px);
}

.idg-contact__label {
	margin: 0 0 14px;
	font-size: 0.72rem;
	font-weight: 600;
	color: var(--ink-2);
}

.idg-contact__list {
	display: grid;
	gap: 9px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: c;
	font-size: 0.9rem;
}

.idg-contact__list li {
	counter-increment: c;
}

.idg-contact__list a {
	display: inline-flex;
	align-items: baseline;
	gap: 0.7em;
	color: inherit;
	text-decoration: none;
	transition: color 0.3s;
}

.idg-contact__list a::before {
	content: "[" counter(c, decimal-leading-zero) "]";
	font: 500 0.64rem/1 var(--mono);
	color: var(--ink-2);
	direction: ltr;
}

.idg-contact__list a:hover,
.idg-contact__text a:hover {
	color: var(--accent-ink);
}

.idg-contact__text {
	margin: 0;
	font-size: 0.9rem;
	line-height: 2;
}

.idg-contact__text a {
	color: inherit;
	text-decoration: none;
}

.idg-copy {
	position: relative;
	padding: 0 0 2px;
	border: 0;
	border-bottom: 1px solid var(--line);
	background: none;
	font: inherit;
	font-size: 0.9rem;
	color: inherit;
	cursor: pointer;
}

.idg-copy::after {
	content: attr(data-done);
	position: absolute;
	inset-inline-start: 0;
	bottom: calc(100% + 6px);
	padding: 0.2em 0.7em;
	border-radius: 8px;
	background: var(--ink);
	color: var(--paper);
	font: 500 0.7rem/1.7 var(--font);
	white-space: nowrap;
	opacity: 0;
	transform: translateY(4px);
	transition: opacity 0.3s, transform 0.4s var(--ease);
	pointer-events: none;
}

.idg-copy.is-copied::after {
	opacity: 1;
	transform: none;
}

.idg-contact__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 20px;
	margin-top: clamp(40px, 9vw, 80px);
	padding-top: 18px;
	border-top: 1px solid var(--line);
	font-size: 0.74rem;
	color: var(--ink-2);
}

.idg-contact__bar p {
	margin: 0;
}

.idg-contact__keep {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	color: inherit;
	text-decoration: none;
}

.idg-contact__keep .idg-icon {
	width: 14px;
	height: 14px;
	animation: idg-bob 1.6s var(--ease-io) infinite;
}

@keyframes idg-bob {
	50% {
		transform: translateY(4px);
	}
}

@media (min-width: 900px) {
	.idg-contact__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* Next page window ------------------------------------------------------------------ */

.idg-sheet > .idg-next {
	background: none;
}

.idg-next {
	position: relative;
	display: grid;
	place-items: center;
	height: 88vh;
	height: 88svh;
	color: #fff;
	text-align: center;
}

.idg-next::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(60% 34% at 50% 54%, hsl(var(--hue) 78% 12% / 0.5), transparent 75%),
		linear-gradient(to bottom, hsl(var(--hue) 78% 13% / 0.42), hsl(var(--hue) 78% 16% / 0.12) 40%, hsl(var(--hue) 78% 13% / 0.4));
	pointer-events: none;
}

.idg-next__link {
	position: relative;
	display: grid;
	justify-items: center;
	gap: 12px;
	padding-bottom: var(--dock-h);
	color: inherit;
	text-decoration: none;
	text-shadow: 0 2px 26px hsl(var(--hue) 80% 10% / 0.7);
}

.idg-next__ring {
	position: relative;
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
}

.idg-next__ring > svg:first-child {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	transform: rotate(-90deg);
}

.idg-next__ring circle {
	fill: none;
	stroke: hsl(0 0% 100% / 0.4);
	stroke-width: 1.5;
}

.idg-next__ring .idg-next__fill {
	stroke: #fff;
	stroke-dasharray: 100;
	stroke-dashoffset: calc(100 - var(--p, 0) * 100);
}

.idg-next__ring .idg-icon {
	animation: idg-bob 1.6s var(--ease-io) infinite;
}

.idg-next__label {
	font-size: 0.74rem;
}

.idg-next__title {
	font-size: clamp(2.3rem, 11vw, 4.8rem);
	font-weight: 200;
	line-height: 1.3;
}

/* Prose (WordPress content) ----------------------------------------------------------- */

.idg-prose {
	font-size: 1.04rem;
	line-height: 2.05;
	overflow-wrap: break-word;
}

[dir="ltr"] .idg-prose {
	line-height: 1.75;
}

.idg-prose > * {
	margin-block: 0 1.4em;
}

.idg-prose > *:last-child {
	margin-bottom: 0;
}

.idg-prose h1,
.idg-prose h2,
.idg-prose h3,
.idg-prose h4 {
	margin-top: 1.9em;
	font-weight: 800;
	line-height: 1.5;
}

.idg-prose h2 {
	font-size: clamp(1.5rem, 6vw, 2.2rem);
}

.idg-prose h3 {
	font-size: clamp(1.25rem, 5vw, 1.6rem);
}

.idg-prose img,
.idg-prose video,
.idg-prose iframe {
	max-width: 100%;
	height: auto;
	border-radius: 18px;
}

.idg-prose iframe {
	width: 100%;
	aspect-ratio: 16 / 9;
}

.idg-prose figure {
	margin-inline: 0;
}

.idg-prose figcaption,
.wp-caption-text {
	margin-top: 8px;
	font-size: 0.8rem;
	color: var(--ink-2);
	text-align: center;
}

.idg-prose blockquote {
	margin-inline: 0;
	padding: 6px 22px;
	border-inline-start: 3px solid var(--accent);
	font-size: 1.15em;
	font-weight: 300;
}

.idg-prose pre,
.idg-prose code {
	font-family: var(--mono);
	font-size: 0.88em;
	direction: ltr;
}

.idg-prose code {
	padding: 0.15em 0.45em;
	border-radius: 7px;
	background: var(--paper-2);
}

.idg-prose pre {
	padding: 18px;
	overflow-x: auto;
	border-radius: 16px;
	background: var(--paper-2);
	text-align: left;
}

.idg-prose pre code {
	padding: 0;
	background: none;
}

.idg-prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.94em;
}

.idg-prose th,
.idg-prose td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--line);
	text-align: start;
}

.idg-prose hr {
	border: 0;
	border-top: 1px solid var(--line);
}

.idg-prose .alignwide,
.idg-prose .alignfull {
	width: auto;
	max-width: none;
	margin-inline: calc(var(--pad) * -0.6);
}

.aligncenter {
	display: block;
	margin-inline: auto;
}

.alignleft {
	float: left;
	margin: 0 1.2em 1em 0;
}

.alignright {
	float: right;
	margin: 0 0 1em 1.2em;
}

.idg-figure {
	margin: 0 0 clamp(28px, 6vw, 48px);
	overflow: hidden;
	border-radius: 22px;
}

.idg-figure img {
	display: block;
	width: 100%;
	height: auto;
}

/* Post lists, pagination, comments ---------------------------------------------------- */

.idg-posts {
	display: grid;
}

.idg-post__link {
	display: grid;
	gap: 16px;
	padding: 26px 0;
	border-bottom: 1px solid var(--line);
	color: inherit;
	text-decoration: none;
}

.idg-post__thumb {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 18px;
	background: var(--paper-2);
}

.idg-post__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.2s var(--ease);
}

.idg-post__link:hover img {
	transform: scale(1.05);
}

.idg-post__meta {
	margin: 0 0 4px;
	font-size: 0.74rem;
	color: var(--ink-2);
}

.idg-post__title {
	margin: 0 0 6px;
	font-size: clamp(1.3rem, 5.4vw, 1.8rem);
	font-weight: 700;
	line-height: 1.6;
	transition: color 0.3s;
}

.idg-post__link:hover .idg-post__title {
	color: var(--accent-ink);
}

.idg-post__excerpt {
	margin: 0;
	font-size: 0.92rem;
	color: var(--ink-2);
}

.navigation.pagination,
.idg-pager {
	margin-top: 40px;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.page-numbers {
	display: grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	color: inherit;
	text-decoration: none;
	font-size: 0.9rem;
}

.page-numbers.current {
	border-color: var(--accent);
	background: var(--accent);
	color: #fff;
}

.idg-pager {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	padding-top: 24px;
	border-top: 1px solid var(--line);
	font-size: 0.92rem;
}

.idg-pager a {
	color: inherit;
	text-decoration: none;
}

.idg-pager a:hover {
	color: var(--accent-ink);
}

.idg-pager__next {
	text-align: end;
}

.idg-comments {
	margin-top: 56px;
	padding-top: 32px;
	border-top: 1px solid var(--line);
}

.idg-comments__title {
	margin: 0 0 20px;
	font-size: 1.3rem;
}

.idg-comments__list,
.idg-comments__list .children {
	margin: 0;
	padding: 0;
	list-style: none;
}

.idg-comments__list .children {
	padding-inline-start: 20px;
}

.idg-comments .comment-body {
	padding: 18px 0;
	border-bottom: 1px solid var(--line);
	font-size: 0.94rem;
}

.idg-comments .comment-author {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
}

.idg-comments .avatar {
	border-radius: 50%;
}

.idg-comments .comment-metadata {
	font-size: 0.74rem;
	color: var(--ink-2);
}

.idg-comments .comment-metadata a {
	color: inherit;
}

.comment-form label {
	display: block;
	margin-bottom: 6px;
	font-size: 0.84rem;
	font-weight: 600;
}

.comment-form input:not([type="checkbox"]):not([type="submit"]),
.comment-form textarea,
.search-form input[type="search"] {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: var(--card);
	font: inherit;
	font-size: 16px;
	color: var(--ink);
}

.comment-form input[type="submit"],
.search-form input[type="submit"] {
	padding: 0.85em 1.6em;
	border: 0;
	border-radius: 999px;
	background: var(--accent);
	font: 600 0.95rem/1.3 var(--font);
	color: #fff;
	cursor: pointer;
}

/* Floating dock ------------------------------------------------------------------------- */

.idg-scrim {
	position: fixed;
	inset: 0;
	z-index: 55;
	background: hsl(var(--hue) 60% 7% / 0.5);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	opacity: 0;
	transition: opacity 0.5s var(--ease);
}

.idg-scrim.is-on {
	opacity: 1;
}

.idg-dock {
	position: fixed;
	left: 50%;
	bottom: calc(14px + var(--safe-b));
	z-index: 60;
	width: min(calc(100vw - 28px), 306px);
	overflow: hidden;
	border: 1px solid hsl(var(--hue) 100% 92% / 0.34);
	border-radius: 30px;
	color: #fff;
	background: linear-gradient(120deg, hsl(var(--hue) 80% 32% / 0.66), hsl(var(--h2) 72% 46% / 0.58));
	-webkit-backdrop-filter: blur(18px) saturate(1.6);
	backdrop-filter: blur(18px) saturate(1.6);
	box-shadow: 0 14px 44px hsl(var(--hue) 82% 18% / 0.4), inset 0 1px 0 hsl(0 0% 100% / 0.28);
	transform: translate(-50%, 0);
	transition: width 0.7s var(--ease), transform 0.9s var(--ease), opacity 0.6s var(--ease), background 0.6s;
}

html.js:not(.is-entered) .idg-dock {
	opacity: 0;
	transform: translate(-50%, 150%);
}

.idg-dock[data-open="true"] {
	width: min(calc(100vw - 20px), 430px);
	background: linear-gradient(140deg, hsl(var(--hue) 80% 26% / 0.9), hsl(var(--h2) 68% 38% / 0.86));
}

.idg-dock__panel {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.7s var(--ease);
}

.idg-dock[data-open="true"] .idg-dock__panel {
	grid-template-rows: 1fr;
}

.idg-dock__inner {
	min-height: 0;
	overflow: hidden;
	visibility: hidden;
	transition: visibility 0s 0.7s;
}

.idg-dock[data-open="true"] .idg-dock__inner {
	visibility: visible;
	transition-delay: 0s;
}

.idg-dock__scroll {
	max-height: calc(100vh - 150px);
	max-height: calc(100svh - 150px);
	padding: 22px 18px 4px;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: none;
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.3s, transform 0.6s var(--ease);
}

.idg-dock__scroll::-webkit-scrollbar {
	display: none;
}

.idg-dock[data-open="true"] .idg-dock__scroll {
	opacity: 1;
	transform: none;
	transition: opacity 0.5s 0.2s, transform 0.8s var(--ease) 0.2s;
}

.idg-dock__label {
	margin: 18px 0 0;
	padding-bottom: 8px;
	/* The lines of the panel are backgrounds, so they can sweep in when the menu opens ( see below ). */
	background: linear-gradient(hsl(0 0% 100% / 0.45), hsl(0 0% 100% / 0.45)) no-repeat 100% 100% / 100% 1px;
	font-size: 0.7rem;
	font-weight: 500;
	line-height: 1.6;
}

.idg-dock__label:first-child {
	margin-top: 0;
}

.idg-menu__list,
.idg-set {
	margin: 0;
	padding: 0;
	list-style: none;
}

.idg-menu__list {
	counter-reset: m;
}

.idg-menu__list li,
.idg-set__row {
	background: linear-gradient(hsl(0 0% 100% / 0.24), hsl(0 0% 100% / 0.24)) no-repeat 100% 100% / 100% 1px;
}

/* A menu row has a faint line, and a bright one that sweeps across it under the pointer. */
.idg-menu__list li {
	counter-increment: m;
	background:
		linear-gradient(hsl(0 0% 100% / 0.8), hsl(0 0% 100% / 0.8)) no-repeat 100% 100% / 0% 1px,
		linear-gradient(hsl(0 0% 100% / 0.24), hsl(0 0% 100% / 0.24)) no-repeat 100% 100% / 100% 1px;
	transition: background-size 0.6s var(--ease);
}

.idg-menu__list li:hover,
.idg-menu__list li:focus-within {
	background-size: 100% 1px, 100% 1px;
}

[dir="ltr"] .idg-dock__label,
[dir="ltr"] .idg-menu__list li,
[dir="ltr"] .idg-set__row {
	background-position: 0 100%;
}

/* Opening the menu: the lines sweep in from the side the words start on and the words rise into place, one row after
   another ( --i is each row's place in the panel, set in assets/js/ui.js ). */
.idg-dock[data-open="true"] .idg-dock__label,
.idg-dock[data-open="true"] .idg-set__row {
	animation: idg-menu-line 1s var(--ease) backwards;
	animation-delay: calc(0.15s + var(--i, 0) * 0.06s);
}

.idg-dock[data-open="true"] .idg-menu__list li {
	animation: idg-menu-line2 1s var(--ease) backwards;
	animation-delay: calc(0.15s + var(--i, 0) * 0.06s);
}

.idg-dock[data-open="true"] .idg-menu__label,
.idg-dock[data-open="true"] .idg-set__row > * {
	animation: idg-menu-rise 0.9s var(--ease) backwards;
	animation-delay: calc(0.22s + var(--i, 0) * 0.06s);
}

.idg-dock[data-open="true"] .idg-menu__list a::before {
	animation: idg-menu-fade 0.8s ease backwards;
	animation-delay: calc(0.45s + var(--i, 0) * 0.06s);
}

@keyframes idg-menu-line {
	from {
		background-size: 0% 1px;
	}
}

@keyframes idg-menu-line2 {
	from {
		background-size: 0% 1px, 0% 1px;
	}
}

@keyframes idg-menu-rise {
	from {
		opacity: 0;
		transform: translateY(18px);
	}
}

@keyframes idg-menu-fade {
	from {
		opacity: 0;
	}
}

.idg-menu__list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 0;
	font-size: 1.22rem;
	font-weight: 300;
	line-height: 1.6;
	color: #fff;
	text-decoration: none;
}

/* The words stand at the start of the row ( the right, in Persian ) and the numbers at its end. */
.idg-menu__list a::before {
	content: counter(m, decimal-leading-zero);
	order: 2;
	font: 500 0.72rem/1 var(--mono);
	direction: ltr;
	opacity: 0.75;
}

.idg-menu__label {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	transition: transform 0.5s var(--ease);
}

.idg-menu__list a:hover .idg-menu__label {
	transform: translateX(calc(6px * var(--dirx)));
}

.idg-menu__list .current-menu-item .idg-menu__label::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--accent-2);
	box-shadow: 0 0 12px var(--accent-2);
}

/* The settings are quieter than the menu: smaller words, tighter rows, smaller switches. */
.idg-set__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 0;
	font-size: 0.8rem;
	color: hsl(0 0% 100% / 0.82);
}

.idg-set .idg-switch {
	transform: scale(0.82);
	transform-origin: var(--switch-end, left) center;
}

[dir="ltr"] .idg-set .idg-switch {
	--switch-end: right;
}

.idg-set__row--stack {
	display: block;
	padding: 0;
}

.idg-set__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 13px 0;
	border: 0;
	background: none;
	font: inherit;
	color: inherit;
	cursor: pointer;
}

.idg-set__toggle .idg-icon {
	width: 18px;
	height: 18px;
	transform: scaleX(var(--dirx));
	transition: transform 0.4s var(--ease);
}

.idg-set__toggle[aria-expanded="true"] .idg-icon {
	transform: rotate(90deg);
}

.idg-set__options {
	display: grid;
	padding-bottom: 8px;
}

.idg-set__options button {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 0;
	border: 0;
	background: none;
	font: inherit;
	font-size: 0.92rem;
	color: inherit;
	cursor: pointer;
	opacity: 0.66;
}

.idg-set__options button[aria-checked="true"] {
	opacity: 1;
}

.idg-set__options .idg-icon {
	width: 18px;
	height: 18px;
	opacity: 0;
}

.idg-set__options button[aria-checked="true"] .idg-icon {
	opacity: 1;
}

.idg-badge {
	margin-inline-start: 0.7em;
	padding: 0.2em 0.7em;
	border-radius: 999px;
	background: var(--accent);
	font-size: 0.62rem;
	font-weight: 600;
}

.idg-switch {
	position: relative;
	flex: none;
	width: 46px;
	height: 26px;
	padding: 0;
	border: 0;
	border-radius: 26px;
	background: hsl(0 0% 100% / 0.3);
	cursor: pointer;
	transition: background 0.35s;
}

.idg-switch i {
	position: absolute;
	top: 3px;
	inset-inline-start: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	transition: transform 0.45s var(--ease);
}

.idg-switch[aria-checked="true"] {
	background: var(--accent);
}

.idg-switch[aria-checked="true"] i {
	transform: translateX(calc(20px * var(--dirx)));
}

.idg-dock__cta {
	display: flex;
	justify-content: center;
	padding: 22px 0 10px;
}

.idg-dock__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--dock-h);
	padding-inline: 8px;
}

.idg-dock__btn {
	display: grid;
	place-items: center;
	flex: none;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: inherit;
	cursor: pointer;
}

.idg-burger {
	align-content: center;
	gap: 6px;
}

.idg-burger span {
	display: block;
	width: 24px;
	height: 1.5px;
	border-radius: 2px;
	background: #fff;
	transition: transform 0.55s var(--ease);
}

.idg-dock[data-open="true"] .idg-burger span:first-child {
	transform: translateY(3.75px) rotate(45deg);
}

.idg-dock[data-open="true"] .idg-burger span:last-child {
	transform: translateY(-3.75px) rotate(-45deg);
}

.idg-dock__brand {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--brand-font);
	font-size: calc(1.42rem * var(--brand-size, 1));
	font-style: var(--brand-style, normal);
	font-weight: var(--brand-weight, 300);
	line-height: 1;
	letter-spacing: var(--brand-track, 0.01em);
	color: #fff;
	text-decoration: none;
}

.idg-dock__word b {
	font-weight: var(--brand-bold, 700);
	color: var(--accent-2);
	text-shadow: 0 0 18px hsl(var(--h2) 100% 72% / 0.9);
}

.idg-eq {
	display: inline-flex;
	align-items: flex-end;
	gap: 2px;
	width: 0;
	height: 13px;
	overflow: hidden;
	opacity: 0;
	transition: width 0.5s var(--ease), opacity 0.5s;
}

.is-sound .idg-eq {
	width: 14px;
	opacity: 0.95;
}

.idg-eq i {
	width: 2px;
	height: 100%;
	border-radius: 1px;
	background: #fff;
	transform-origin: bottom;
	animation: idg-eq 0.9s ease-in-out infinite alternate;
	animation-play-state: paused;
}

.is-sound .idg-eq i {
	animation-play-state: running;
}

.idg-eq i:nth-child(2) {
	animation-duration: 0.6s;
	animation-delay: -0.2s;
}

.idg-eq i:nth-child(3) {
	animation-duration: 1.1s;
	animation-delay: -0.5s;
}

.idg-eq i:nth-child(4) {
	animation-duration: 0.75s;
	animation-delay: -0.1s;
}

@keyframes idg-eq {
	from {
		transform: scaleY(0.2);
	}
	to {
		transform: scaleY(1);
	}
}

.idg-orbbtn__orb {
	position: relative;
	display: block;
	flex: none;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	box-shadow: 0 0 0 1px hsl(0 0% 100% / 0.45), 0 6px 18px hsl(var(--hue) 90% 40% / 0.6);
	isolation: isolate;
	transition: transform 0.5s var(--ease);
}

/* The light and the waves, on their own circle: Safari on phones lets turning, blended layers spill out of a plain
   overflow:hidden with a radius ( a square around the orb ), so the circle is also cut with clip-path and a mask. */
.idg-orbbtn__ink {
	position: absolute;
	inset: 0;
	overflow: hidden;
	border-radius: 50%;
	background: radial-gradient(circle at 32% 28%, #fff 0 8%, hsl(var(--h2) 100% 86%) 24%, hsl(var(--hue) 96% 66%) 60%, hsl(calc(var(--hue) - 24) 86% 46%) 100%);
	isolation: isolate;
	clip-path: circle(50% at 50% 50%);
	-webkit-mask-image: radial-gradient(circle, #000 69%, transparent 71%);
	mask-image: radial-gradient(circle, #000 69%, transparent 71%);
	transform: translateZ(0);
}

/* The moving layers are blurred and blended; clip them to the circle on their own layer. */
.idg-orbbtn__orb::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	border-radius: 50%;
	box-shadow: inset 0 0 6px hsl(0 0% 100% / 0.7);
	pointer-events: none;
}

.idg-orbbtn:hover .idg-orbbtn__orb {
	transform: scale(1.08);
}

.idg-orbbtn__ink i {
	position: absolute;
	inset: -30%;
	border-radius: 50%;
	background: conic-gradient(from 0deg, transparent, hsl(var(--h2) 100% 92% / 0.9), transparent 40%, hsl(calc(var(--hue) + 150) 100% 82% / 0.6), transparent 75%);
	mix-blend-mode: screen;
	animation: idg-spin 6s linear infinite;
}

.idg-orbbtn__ink i + i {
	opacity: 0.7;
	animation-duration: 9s;
	animation-direction: reverse;
}

@keyframes idg-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Waves inside the orb (the dock button and the big one in the assistant): three sheets of liquid light.
   Each is a large rounded square turning slowly; its edge rises and falls through the orb like a swell. */
.idg-orbbtn__orb b,
.idg-orb__core b {
	position: absolute;
	top: var(--lvl, 56%);
	left: 50%;
	width: 230%;
	height: 230%;
	margin-left: -115%;
	border-radius: var(--r, 43% 47% 41% 45%);
	background: var(--c, hsl(0 0% 100% / 0.2));
	box-shadow: inset 0 0 0 1.5px hsl(0 0% 100% / 0.5);
	mix-blend-mode: screen;
	animation: idg-spin var(--t, 7s) linear infinite;
	pointer-events: none;
}

.idg-orbbtn__orb b:nth-of-type(1),
.idg-orb__core b:nth-of-type(1) {
	--lvl: 48%;
	--t: 6.5s;
	--r: 44% 46% 40% 47%;
	--c: hsl(var(--h2) 100% 84% / 0.34);
}

.idg-orbbtn__orb b:nth-of-type(2),
.idg-orb__core b:nth-of-type(2) {
	--lvl: 57%;
	--t: 9s;
	--r: 41% 45% 46% 42%;
	--c: hsl(var(--hue) 100% 70% / 0.42);
	animation-direction: reverse;
}

.idg-orbbtn__orb b:nth-of-type(3),
.idg-orb__core b:nth-of-type(3) {
	--lvl: 66%;
	--t: 12s;
	--r: 46% 42% 44% 40%;
	--c: hsl(calc(var(--hue) - 28) 92% 46% / 0.55);
	mix-blend-mode: normal;
}

.idg-orb[data-state="thinking"] .idg-orb__core b {
	animation-duration: 2.2s;
}

.idg-orb[data-state="speaking"] .idg-orb__core b {
	animation-duration: 3.6s;
}

.idg-tip {
	position: fixed;
	left: 50%;
	bottom: calc(var(--dock-h) + 28px + var(--safe-b));
	z-index: 59;
	width: min(calc(100vw - 40px), 290px);
	padding: 12px 15px;
	border-radius: 16px;
	background: var(--accent);
	color: #fff;
	font-size: 0.76rem;
	line-height: 1.85;
	box-shadow: 0 12px 30px hsl(var(--hue) 82% 30% / 0.42);
	opacity: 0;
	transform: translate(-50%, 12px) scale(0.96);
	transform-origin: bottom;
	transition: opacity 0.5s var(--ease), transform 0.7s var(--ease);
	pointer-events: none;
	cursor: pointer;
}

.idg-tip.is-on {
	opacity: 1;
	transform: translate(-50%, 0);
	pointer-events: auto;
}

.idg-tip p {
	margin: 0;
}

.idg-tip::after {
	content: "";
	position: absolute;
	bottom: -5px;
	inset-inline-end: 24px;
	width: 12px;
	height: 12px;
	border-radius: 2px;
	background: inherit;
	transform: rotate(45deg);
}

/* Page transition cover -------------------------------------------------------------------- */

.idg-cover {
	position: fixed;
	inset: 0;
	z-index: 50;
	background: var(--paper);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.45s var(--ease), visibility 0s 0.45s;
}

.idg-cover.is-on {
	opacity: 1;
	visibility: visible;
	transition-delay: 0s;
}

/* A slow page: the cover ( the colour of the burning sheet, assets/js/app.js ) comes over the sheet to show its spinner. */
.idg-cover.is-slow {
	z-index: 100;
}

/* Assistant overlay -------------------------------------------------------------------------- */

.idg-chat {
	position: fixed;
	top: 0;
	inset-inline: 0;
	z-index: 80;
	display: flex;
	flex-direction: column;
	height: var(--vvh, 100dvh);
	background:
		radial-gradient(80% 50% at 50% 36%, hsl(var(--h2) 100% 92% / 0.9), transparent 70%),
		var(--paper);
	color: var(--ink);
	opacity: 0;
	visibility: hidden;
	transform: translateY(var(--vvt, 0px));
	transition: opacity 0.5s var(--ease), visibility 0s 0.5s;
}

html[data-theme="dark"] .idg-chat {
	background:
		radial-gradient(80% 50% at 50% 36%, hsl(var(--hue) 80% 22% / 0.9), transparent 70%),
		var(--paper);
}

/* Logged in: below WordPress's toolbar, so the window's buttons are not under it. */
.admin-bar .idg-chat {
	top: var(--wp-admin--admin-bar--height, 0px);
	height: calc(var(--vvh, 100dvh) - var(--wp-admin--admin-bar--height, 0px));
}

.idg-chat.is-open {
	opacity: 1;
	visibility: visible;
	transition-delay: 0s;
}

/* Shown or hidden at once: a sheet with a glowing edge (assets/js/burn.js) covers the change. */
.idg-chat.is-instant {
	transition: none;
}

.idg-chat__head {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: calc(12px + env(safe-area-inset-top, 0px)) var(--pad) 6px;
}

.idg-chat__name {
	display: flex;
	align-items: center;
	gap: 0.6em;
	margin: 0;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--ink-2);
}

.idg-chat__name i {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: hsl(146 68% 44%);
	box-shadow: 0 0 0 4px hsl(146 68% 44% / 0.2);
}

.idg-chat__actions {
	display: flex;
	gap: 8px;
}

.idg-iconbtn {
	display: grid;
	place-items: center;
	flex: none;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--card);
	color: var(--accent-ink);
	box-shadow: 0 2px 14px hsl(var(--hue) 60% 40% / 0.14);
	cursor: pointer;
	transition: transform 0.3s var(--ease), background 0.3s, opacity 0.3s;
}

.idg-iconbtn:active {
	transform: scale(0.9);
}

.idg-iconbtn .idg-icon {
	width: 20px;
	height: 20px;
}

.idg-iconbtn--close {
	color: hsl(4 82% 58%);
}

.idg-iconbtn--ghost {
	background: none;
	box-shadow: none;
	color: var(--ink);
}

.idg-iconbtn--ghost.is-live {
	background: hsl(4 82% 58%);
	color: #fff;
	animation: idg-pulse 1.2s ease-in-out infinite;
}

.idg-iconbtn--send {
	background: var(--accent);
	color: #fff;
	box-shadow: none;
}

.idg-iconbtn--send:disabled {
	opacity: 0.4;
	cursor: default;
}

.idg-iconbtn .is-off,
.idg-iconbtn[aria-pressed="false"] .is-on,
.idg-iconbtn .is-stop,
.idg-chat.is-busy .idg-iconbtn .is-send {
	display: none;
}

.idg-iconbtn[aria-pressed="false"] .is-off,
.idg-chat.is-busy .idg-iconbtn .is-stop {
	display: block;
}

@keyframes idg-pulse {
	50% {
		box-shadow: 0 0 0 10px hsl(4 82% 58% / 0);
	}
	0%,
	100% {
		box-shadow: 0 0 0 0 hsl(4 82% 58% / 0.5);
	}
}

.idg-chat__stage {
	display: grid;
	place-items: center;
	flex: 1 1 0;
	min-height: 96px;
	transition: flex-grow 0.7s var(--ease);
}

.idg-chat.has-thread .idg-chat__stage {
	flex: 0 0 96px;
}

.idg-orb {
	--s: min(60vw, 270px, 34vh);
	position: relative;
	width: var(--s);
	height: var(--s);
	transition: width 0.8s var(--ease), height 0.8s var(--ease);
}

.idg-chat.has-thread .idg-orb {
	--s: 66px;
}

.idg-orb__halo {
	position: absolute;
	inset: -20%;
	border-radius: 44% 56% 52% 48% / 50% 44% 56% 50%;
	background: conic-gradient(from 90deg, hsl(calc(var(--hue) + 80) 100% 78% / 0.6), hsl(var(--hue) 100% 70% / 0.55), hsl(calc(var(--hue) - 50) 100% 74% / 0.6), hsl(calc(var(--hue) + 160) 100% 80% / 0.42), hsl(calc(var(--hue) + 80) 100% 78% / 0.6));
	filter: blur(calc(var(--s) * 0.1));
	animation: idg-spin 14s linear infinite, idg-morph 9s ease-in-out infinite;
}

@keyframes idg-morph {
	50% {
		border-radius: 56% 44% 46% 54% / 44% 56% 44% 56%;
	}
}

.idg-orb__ring {
	position: absolute;
	inset: -5%;
	border: 1px solid hsl(var(--hue) 90% 68% / 0.4);
	border-radius: 50%;
	animation: idg-ring 4s ease-out infinite;
}

.idg-orb__ring + .idg-orb__ring {
	animation-delay: 2s;
}

@keyframes idg-ring {
	from {
		opacity: 0.85;
		transform: scale(0.94);
	}
	to {
		opacity: 0;
		transform: scale(1.36);
	}
}

.idg-orb__core {
	position: absolute;
	inset: 0;
	overflow: hidden;
	border-radius: 50%;
	background: radial-gradient(circle at 34% 28%, hsl(var(--h2) 100% 95%) 0, hsl(var(--h2) 100% 82%) 14%, hsl(var(--hue) 95% 62%) 50%, hsl(calc(var(--hue) - 28) 88% 40%) 100%);
	box-shadow: inset 0 0 calc(var(--s) * 0.12) hsl(0 0% 100% / 0.5), inset 0 calc(var(--s) * -0.1) calc(var(--s) * 0.22) hsl(calc(var(--hue) - 30) 90% 28% / 0.55);
	animation: idg-breathe 5s ease-in-out infinite;
	isolation: isolate;
	clip-path: circle(50%);
}

@keyframes idg-breathe {
	50% {
		transform: scale(1.035);
	}
}

.idg-orb__core i {
	position: absolute;
	width: 76%;
	height: 76%;
	border-radius: 50%;
	filter: blur(calc(var(--s) * 0.09));
	mix-blend-mode: screen;
	animation: idg-orbit var(--t, 9s) linear infinite;
}

.idg-orb__core i:nth-child(1) {
	--t: 9s;
	top: -6%;
	left: -10%;
	background: hsl(calc(var(--hue) + 70) 100% 62% / 0.8);
}

.idg-orb__core i:nth-child(2) {
	--t: 13s;
	top: 10%;
	right: -14%;
	background: hsl(calc(var(--hue) - 40) 100% 56% / 0.8);
	animation-direction: reverse;
}

.idg-orb__core i:nth-child(3) {
	--t: 11s;
	bottom: -18%;
	left: 6%;
	background: hsl(calc(var(--hue) + 150) 96% 64% / 0.5);
}

.idg-orb__core i:nth-child(4) {
	--t: 16s;
	right: 0;
	bottom: -6%;
	background: hsl(var(--h2) 100% 70% / 0.7);
	animation-direction: reverse;
}

@keyframes idg-orbit {
	from {
		transform: rotate(0deg) translateX(16%) rotate(0deg);
	}
	to {
		transform: rotate(360deg) translateX(16%) rotate(-360deg);
	}
}

.idg-orb__shine {
	position: absolute;
	top: 13%;
	left: 21%;
	width: 30%;
	height: 18%;
	border-radius: 50%;
	background: radial-gradient(closest-side, #fff, transparent);
	opacity: 0.7;
	filter: blur(2px);
	transform: rotate(-24deg);
}

.idg-orb[data-state="thinking"] .idg-orb__core i {
	animation-duration: 2.4s;
}

.idg-orb[data-state="thinking"] .idg-orb__halo {
	animation-duration: 3.5s, 2s;
}

.idg-orb[data-state="speaking"] .idg-orb__core {
	animation: idg-speak 0.42s ease-in-out infinite alternate;
}

@keyframes idg-speak {
	from {
		transform: scale(0.97);
	}
	to {
		transform: scale(1.07);
	}
}

.idg-chat__log {
	display: flex;
	flex: 0 1 auto;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	max-height: 44%;
	padding: 8px var(--pad);
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}

.idg-chat.has-thread .idg-chat__log {
	flex: 1 1 0;
	max-height: none;
}

.idg-msg {
	max-width: min(88%, 34rem);
	padding: 11px 16px;
	border-radius: 20px;
	border-end-start-radius: 6px;
	background: var(--card);
	color: var(--ink);
	font-size: 0.95rem;
	line-height: 1.9;
	overflow-wrap: anywhere;
	box-shadow: 0 2px 16px hsl(var(--hue) 60% 40% / 0.1);
	animation: idg-msg 0.55s var(--ease) both;
}

/* With the owner's chat plugin answering ( assets/js/chat.js ): notes, people, products, orders, forms. */
.idg-msg--note {
	align-self: center;
	max-width: 92%;
	padding: 6px 14px;
	border-radius: 999px;
	background: hsl(var(--hue) 60% 50% / 0.1);
	box-shadow: none;
	font-size: 0.8rem;
	line-height: 1.7;
	text-align: center;
	color: var(--ink);
	opacity: 0.85;
}

.idg-msg__who {
	display: block;
	margin-bottom: 2px;
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--accent-ink);
}

.idg-typing__label {
	margin-inline-start: 8px;
	font-size: 0.8rem;
	opacity: 0.7;
}

.idg-typing__label:empty {
	display: none;
}

.idg-cards {
	display: flex;
	gap: 10px;
	margin: 10px -6px 2px;
	padding: 2px 6px 6px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.idg-cards::-webkit-scrollbar {
	display: none;
}

.idg-pcard {
	flex: none;
	display: flex;
	flex-direction: column;
	gap: 4px;
	width: 150px;
	padding: 8px;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: var(--paper);
	scroll-snap-align: start;
	line-height: 1.6;
}

.idg-pcard__pic {
	position: relative;
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: 11px;
	background: hsl(var(--hue) 40% 50% / 0.08);
}

.idg-pcard__pic img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.idg-pcard__tag {
	position: absolute;
	top: 6px;
	inset-inline-start: 6px;
	padding: 1px 8px;
	border-radius: 999px;
	background: var(--accent);
	color: #fff;
	font-size: 0.7rem;
}

.idg-pcard__name {
	display: -webkit-box;
	overflow: hidden;
	color: inherit;
	font-size: 0.82rem;
	font-weight: 600;
	text-decoration: none;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.idg-pcard__price {
	margin: 0;
	font-size: 0.8rem;
}

.idg-pcard__price del {
	opacity: 0.55;
}

.idg-pcard__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: auto;
	padding: 6px 12px;
	border: 0;
	border-radius: 999px;
	background: var(--accent);
	color: #fff;
	font: 600 0.78rem/1.6 var(--font);
	text-decoration: none;
	cursor: pointer;
}

.idg-pcard__btn:disabled {
	opacity: 0.6;
}

.idg-pcard__btn--ghost {
	background: none;
	color: var(--accent-ink);
	box-shadow: inset 0 0 0 1px var(--line);
}

.idg-pcard__note {
	margin: 4px 0 0;
	font-size: 0.75rem;
	opacity: 0.8;
}

.idg-order {
	margin-top: 10px;
	padding: 10px 12px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: var(--paper);
	font-size: 0.82rem;
}

.idg-order__line {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 4px;
}

.idg-order__sum {
	padding-top: 4px;
	border-top: 1px dashed var(--line);
	font-weight: 600;
}

.idg-order__btns {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
}

.idg-iaform {
	display: grid;
	gap: 6px;
	margin-top: 8px;
}

.idg-iaform input {
	padding: 8px 12px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--card);
	color: var(--ink);
	font: inherit;
	font-size: 0.85rem;
}

.idg-msg--user {
	align-self: flex-end;
	border-end-start-radius: 20px;
	border-end-end-radius: 6px;
	background: var(--accent);
	color: #fff;
	box-shadow: none;
}

.idg-msg--error {
	background: hsl(4 85% 96%);
	color: hsl(4 62% 36%);
}

html[data-theme="dark"] .idg-msg--error {
	background: hsl(4 45% 18%);
	color: hsl(4 90% 86%);
}

/* -- What the chat plugin adds, in the window's own look ( assets/js/chat.js ) ------------------------------ */

/* Who answers now, under the name ( the assistant's line, waiting for a person, a person ). */
.idg-chat__name > span {
	display: flex;
	flex-direction: column;
	line-height: 1.4;
}

.idg-chat__sub {
	font-size: 0.7rem;
	font-weight: 400;
	opacity: 0.7;
}

.idg-chat__sub:empty {
	display: none;
}

.idg-chat.is-human .idg-chat__name i {
	background: hsl(38 92% 52%);
	box-shadow: 0 0 0 4px hsl(38 92% 52% / 0.22);
}

.idg-chat__cartbtn {
	position: relative;
}

.idg-chat__cartbtn b {
	position: absolute;
	top: -2px;
	inset-inline-end: -2px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 9px;
	background: var(--accent);
	color: #fff;
	font: 700 10px/18px var(--font);
	text-align: center;
}

.idg-chat__cartbtn b[hidden] {
	display: none;
}

.idg-chat__ic {
	display: inline-grid;
	place-items: center;
}

.idg-chat__ic svg {
	width: 1em;
	height: 1em;
}

.idg-msg__who {
	display: flex;
	align-items: center;
	gap: 5px;
}

/* Notes from the plugin: a person took over ( or is being called ), done, an error. */
.idg-msg--ho {
	background: hsl(38 92% 52% / 0.14);
}

.idg-msg--ok {
	background: hsl(146 60% 44% / 0.14);
}

.idg-msg--note.idg-msg--error {
	background: hsl(4 85% 60% / 0.14);
	color: inherit;
}

.idg-msg--form,
.idg-msg--login,
.idg-msg--done {
	width: min(88%, 22rem);
}

.idg-done__title {
	display: block;
	margin-bottom: 4px;
	color: hsl(146 55% 36%);
}

html[data-theme="dark"] .idg-done__title {
	color: hsl(146 60% 66%);
}

.idg-msg__photo {
	display: block;
	max-width: 220px;
	max-height: 220px;
	margin-bottom: 6px;
	border-radius: 14px;
	object-fit: cover;
}

.idg-msg__photo:last-child {
	margin-bottom: 0;
}

.idg-msg h4 {
	margin: 0.4em 0 0.3em;
	font-size: 0.95rem;
}

.idg-msg ul,
.idg-msg ol {
	margin: 0 0 0.6em;
	padding-inline-start: 1.3em;
}

.idg-msg a {
	color: var(--accent-ink);
	text-underline-offset: 3px;
}

.idg-msg--user a {
	color: inherit;
}

.idg-msg code {
	padding: 0 0.35em;
	border-radius: 6px;
	background: hsl(var(--hue) 40% 50% / 0.1);
	font-size: 0.85em;
}

.idg-swatch {
	display: inline-block;
	width: 0.9em;
	height: 0.9em;
	margin-inline-end: 0.3em;
	border-radius: 50%;
	vertical-align: -0.1em;
	box-shadow: inset 0 0 0 1px hsl(0 0% 0% / 0.15);
}

.idg-table {
	margin: 0.4em 0 0.6em;
	overflow-x: auto;
}

.idg-table table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.82rem;
}

.idg-table th,
.idg-table td {
	padding: 5px 8px;
	border-bottom: 1px solid var(--line);
	text-align: start;
	white-space: nowrap;
}

/* Products: rating, options ( sizes as pills, colours as dots ). */
.idg-pcard__rate {
	margin: 0;
	font-size: 0.72rem;
	color: hsl(38 85% 42%);
}

.idg-opts {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
}

.idg-opts__label {
	width: 100%;
	font-size: 0.7rem;
	opacity: 0.7;
}

.idg-opt {
	min-width: 28px;
	height: 26px;
	padding: 0 8px;
	border: 0;
	border-radius: 999px;
	background: var(--card);
	color: var(--ink);
	font: 500 0.72rem/26px var(--font);
	box-shadow: inset 0 0 0 1px var(--line);
	cursor: pointer;
	transition: box-shadow 0.2s, background 0.2s, opacity 0.2s;
}

.idg-opt.is-on {
	background: var(--accent);
	color: #fff;
	box-shadow: none;
}

.idg-opt:disabled {
	opacity: 0.35;
	cursor: default;
	text-decoration: line-through;
}

.idg-opt--color {
	width: 24px;
	min-width: 0;
	height: 24px;
	padding: 0;
	box-shadow: inset 0 0 0 1px hsl(0 0% 0% / 0.15);
}

.idg-opt--color.is-on {
	box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--accent);
}

/* Was this reply useful. */
.idg-fb {
	display: flex;
	gap: 4px;
	margin-top: 6px;
	opacity: 0.55;
	transition: opacity 0.3s;
}

.idg-msg:hover .idg-fb,
.idg-fb:has(.is-on) {
	opacity: 1;
}

.idg-fb__btn {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: var(--ink-2);
	font-size: 15px;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}

.idg-fb__btn:hover {
	background: hsl(var(--hue) 40% 50% / 0.1);
}

.idg-fb__btn.is-on {
	background: var(--accent);
	color: #fff;
}

/* Forms in the conversation ( contact, log in, sign up ). */
.idg-iaform select {
	padding: 8px 12px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--card);
	color: var(--ink);
	font: inherit;
	font-size: 0.85rem;
}

.idg-iaform input:focus,
.idg-iaform select:focus {
	border-color: var(--accent);
	outline: none;
}

.idg-pcard__note.is-bad {
	color: hsl(4 70% 48%);
	opacity: 1;
}

html[data-theme="dark"] .idg-pcard__note.is-bad {
	color: hsl(4 90% 76%);
}

.idg-login {
	margin-top: 10px;
}

.idg-login__title {
	display: block;
	font-size: 0.92rem;
}

.idg-login__hint {
	margin: 2px 0 0;
	font-size: 0.78rem;
	opacity: 0.75;
}

.idg-login__tabs,
.idg-login__choices {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 8px;
}

.idg-login__hp {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
}

.idg-login__code {
	font-size: 1.1rem !important;
	letter-spacing: 0.4em;
	text-align: center;
}

.idg-login__field {
	display: grid;
	gap: 4px;
	font-size: 0.78rem;
}

.idg-login__links {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px;
}

.idg-login__link {
	padding: 2px 0;
	border: 0;
	background: none;
	color: var(--accent-ink);
	font: 500 0.75rem/1.6 var(--font);
	text-decoration: none;
	cursor: pointer;
}

.idg-login__link:disabled {
	color: var(--ink-2);
	opacity: 0.7;
	cursor: default;
}

.idg-order__who span:first-child {
	opacity: 0.65;
}

/* A picture waiting to be sent, above the message box. */
.idg-chat__attach {
	position: relative;
	align-self: flex-start;
	flex: none;
	margin: 0 var(--pad) 6px;
}

.idg-chat__attach[hidden] {
	display: none;
}

.idg-chat__attach img {
	display: block;
	width: 64px;
	height: 64px;
	border-radius: 14px;
	object-fit: cover;
	box-shadow: 0 2px 14px hsl(var(--hue) 60% 40% / 0.18);
}

.idg-chat__attach .idg-iconbtn {
	position: absolute;
	top: -8px;
	inset-inline-end: -8px;
	width: 26px;
	height: 26px;
	background: var(--card);
}

.idg-chat__attach .idg-iconbtn svg {
	width: 12px;
	height: 12px;
}

/* The cart: a sheet over the conversation. */
.idg-chat__sheet {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	z-index: 5;
	display: flex;
	flex-direction: column;
	max-height: 78%;
	padding: 18px var(--pad) calc(18px + env(safe-area-inset-bottom, 0px));
	border-radius: 26px 26px 0 0;
	background: var(--card);
	box-shadow: 0 -10px 40px hsl(var(--hue) 60% 30% / 0.22);
	animation: idg-sheet-up 0.45s var(--ease) both;
}

.idg-chat__sheet[hidden] {
	display: none;
}

@keyframes idg-sheet-up {
	from {
		transform: translateY(40px);
		opacity: 0;
	}
}

.idg-sheet__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}

.idg-sheet__head .idg-pcard__btn {
	margin: 0;
}

.idg-sheet__empty {
	margin: 18px 0;
	text-align: center;
	opacity: 0.7;
}

.idg-sheet__list {
	display: grid;
	gap: 10px;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.idg-line {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.82rem;
}

.idg-line img {
	flex: none;
	width: 52px;
	height: 52px;
	border-radius: 12px;
	object-fit: cover;
}

.idg-line__info {
	display: grid;
	flex: 1;
	min-width: 0;
	line-height: 1.6;
}

.idg-line__info a {
	overflow: hidden;
	color: inherit;
	font-weight: 600;
	text-decoration: none;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.idg-line__info small {
	opacity: 0.65;
}

.idg-line__qty {
	display: flex;
	flex: none;
	align-items: center;
	gap: 6px;
}

.idg-line__qty .idg-iconbtn {
	width: 28px;
	height: 28px;
	font-size: 1rem;
	box-shadow: inset 0 0 0 1px var(--line);
}

.idg-chat__sheet .idg-order {
	margin-top: 12px;
	background: none;
}

.idg-msg p {
	margin: 0 0 0.6em;
}

.idg-msg p:last-child,
.idg-msg ul:last-child,
.idg-msg ol:last-child {
	margin-bottom: 0;
}

.idg-msg ul,
.idg-msg ol {
	margin: 0.2em 0 0.6em;
	padding-inline-start: 1.3em;
}

.idg-msg a {
	color: var(--accent-ink);
	font-weight: 600;
}

.idg-msg code {
	padding: 0.1em 0.4em;
	border-radius: 6px;
	background: var(--paper-2);
	font-family: var(--mono);
	font-size: 0.86em;
	direction: ltr;
	unicode-bidi: embed;
}

.idg-msg pre {
	margin: 0.4em 0;
	padding: 10px 12px;
	overflow-x: auto;
	border-radius: 12px;
	background: var(--paper-2);
	direction: ltr;
	text-align: left;
}

.idg-msg__retry {
	display: block;
	margin-top: 6px;
	padding: 0;
	border: 0;
	border-bottom: 1px solid currentColor;
	background: none;
	font: inherit;
	font-size: 0.84em;
	font-weight: 600;
	color: inherit;
	cursor: pointer;
}

@keyframes idg-msg {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
}

.idg-typing {
	display: inline-flex;
	gap: 5px;
	padding: 8px 2px;
}

.idg-typing i {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.3;
	animation: idg-typing 1.1s ease-in-out infinite;
}

.idg-typing i:nth-child(2) {
	animation-delay: 0.15s;
}

.idg-typing i:nth-child(3) {
	animation-delay: 0.3s;
}

@keyframes idg-typing {
	40% {
		opacity: 1;
		transform: translateY(-4px);
	}
}

.idg-chat__chips {
	display: flex;
	flex: none;
	gap: 8px;
	padding: 8px var(--pad);
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.idg-chat__chips::-webkit-scrollbar {
	display: none;
}

.idg-chat__chips:empty {
	display: none;
}

.idg-chat__chips button {
	flex: none;
	padding: 0.62em 1.05em;
	border: 0;
	border-radius: 999px;
	background: var(--card);
	font: 500 0.82rem/1.6 var(--font);
	color: var(--ink);
	white-space: nowrap;
	box-shadow: 0 2px 12px hsl(var(--hue) 60% 40% / 0.12);
	cursor: pointer;
	animation: idg-msg 0.6s var(--ease) both;
	animation-delay: calc(var(--i, 0) * 70ms + 0.2s);
}

.idg-chat__form {
	display: flex;
	flex: none;
	align-items: flex-end;
	gap: 4px;
	margin: 6px var(--pad) calc(14px + var(--safe-b));
	padding: 6px;
	border: 1px solid hsl(var(--hue) 85% 62% / 0.55);
	border-radius: 30px;
	background: var(--card);
	box-shadow: 0 10px 44px hsl(var(--hue) 92% 60% / 0.28);
}

.idg-chat__form textarea {
	flex: 1;
	min-width: 0;
	max-height: 120px;
	padding: 10px 10px;
	border: 0;
	outline: 0;
	resize: none;
	background: none;
	font: inherit;
	font-size: 16px;
	line-height: 1.5;
	color: var(--ink);
}

.idg-chat__form textarea::placeholder {
	color: var(--ink-2);
	opacity: 0.8;
}

/* Live loading: search, notes, "more" buttons ----------------------------------------- */

.idg-search {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0 auto clamp(28px, 6vw, 44px);
	padding: 6px;
	border: 1px solid var(--line);
	border-radius: 30px;
	background: var(--card);
	box-shadow: 0 6px 24px hsl(var(--hue) 60% 40% / 0.08);
	transition: border-color 0.3s, box-shadow 0.3s;
}

.idg-search:focus-within {
	border-color: hsl(var(--hue) 85% 62% / 0.6);
	box-shadow: 0 10px 34px hsl(var(--hue) 92% 60% / 0.2);
}

.idg-search input[type="search"] {
	flex: 1;
	min-width: 0;
	padding: 10px 14px;
	border: 0;
	outline: 0;
	background: none;
	font: inherit;
	font-size: 16px;
	color: var(--ink);
	-webkit-appearance: none;
	appearance: none;
}

.idg-search input[type="search"]::placeholder {
	color: var(--ink-2);
	opacity: 0.8;
}

.idg-section__foot--row {
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 26px;
}

button.idg-btn {
	font-family: var(--font);
}

.idg-btn.is-loading {
	pointer-events: none;
	opacity: 0.7;
}

.idg-btn.is-loading .idg-icon,
.idg-btn.is-loading::after {
	animation: idg-spin 0.8s linear infinite;
}

.idg-btn.is-loading:not(:has(.idg-icon))::after {
	content: "";
	width: 1em;
	height: 1em;
	border: 2px solid currentColor;
	border-top-color: transparent;
	border-radius: 50%;
}

.idg-form-note {
	margin: 0 0 16px;
	padding: 10px 14px;
	border-radius: 12px;
	background: hsl(4 85% 96%);
	color: hsl(4 62% 36%);
	font-size: 0.9rem;
	line-height: 1.9;
}

.idg-form-note.is-ok {
	background: hsl(146 55% 94%);
	color: hsl(146 62% 24%);
}

html[data-theme="dark"] .idg-form-note {
	background: hsl(4 45% 18%);
	color: hsl(4 90% 86%);
}

html[data-theme="dark"] .idg-form-note.is-ok {
	background: hsl(146 40% 16%);
	color: hsl(146 70% 82%);
}

form.is-sending {
	opacity: 0.6;
	pointer-events: none;
}

/* A slow connection gets a quiet sign that the next page is on its way. */
.idg-cover::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 34px;
	height: 34px;
	margin: -17px 0 0 -17px;
	border: 2px solid hsl(var(--hue) 80% 55% / 0.25);
	border-top-color: var(--accent);
	border-radius: 50%;
	opacity: 0;
	transition: opacity 0.4s;
}

.idg-cover.is-slow::after {
	opacity: 1;
	animation: idg-spin 0.9s linear infinite;
}

/* Wider screens --------------------------------------------------------------------------------- */

@media (min-width: 820px) {
	.idg-chat__log,
	.idg-chat__chips,
	.idg-chat__form {
		width: min(100% - var(--pad) * 2, 44rem);
		margin-inline: auto;
		padding-inline: 0;
	}

	.idg-chat__form {
		padding-inline: 6px;
	}

	.idg-chat__chips {
		flex-wrap: wrap;
		justify-content: center;
	}

	.idg-tip {
		left: calc(50% + 150px);
		transform: translate(-100%, 12px) scale(0.96);
	}

	.idg-tip.is-on {
		transform: translate(-100%, 0);
	}

	[dir="rtl"] .idg-tip {
		left: calc(50% - 150px);
		transform: translate(0, 12px) scale(0.96);
	}

	[dir="rtl"] .idg-tip.is-on {
		transform: translate(0, 0);
	}
}

/* Live settings panel (only for people who may change the theme; assets/js/tune.js) ---------------- */

/* Day or night: a round glass button in the top corner ( the right, in Persian ), the sun by day and the moon by night. */
.idg-mode {
	position: fixed;
	z-index: 66;
	top: calc(var(--wp-admin--admin-bar--height, 0px) + 12px);
	inset-inline-start: 12px;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	overflow: hidden;
	border: 1px solid hsl(0 0% 100% / 0.42);
	border-radius: 50%;
	color: #fff;
	background: linear-gradient(140deg, hsl(0 0% 100% / 0.26), hsl(var(--hue) 80% 60% / 0.12));
	-webkit-backdrop-filter: blur(14px) saturate(1.6);
	backdrop-filter: blur(14px) saturate(1.6);
	box-shadow: 0 8px 24px hsl(var(--hue) 70% 12% / 0.22), inset 0 1px 0 hsl(0 0% 100% / 0.45);
	cursor: pointer;
	transition: transform 0.3s var(--ease), opacity 0.6s var(--ease);
}

.idg-mode:active {
	transform: scale(0.9);
}

.idg-mode .idg-icon {
	grid-area: 1 / 1;
	width: 21px;
	height: 21px;
	transition: transform 0.7s var(--ease), opacity 0.4s;
}

.idg-mode__moon,
html[data-theme="dark"] .idg-mode__sun {
	opacity: 0;
	transform: rotate(-90deg) scale(0.4);
}

html[data-theme="dark"] .idg-mode__moon {
	opacity: 1;
	transform: none;
}

html.js:not(.is-entered) .idg-mode {
	opacity: 0;
	pointer-events: none;
}

.idg-tunebtn {
	position: fixed;
	z-index: 66;
	top: calc(var(--wp-admin--admin-bar--height, 0px) + 12px);
	inset-inline-end: 12px;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid hsl(0 0% 100% / 0.4);
	border-radius: 50%;
	background: hsl(var(--hue) 70% 22% / 0.42);
	color: #fff;
	box-shadow: 0 6px 20px hsl(var(--hue) 70% 10% / 0.25);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	cursor: pointer;
	transition: transform 0.3s var(--ease), background 0.3s, opacity 0.3s;
}

.idg-tunebtn:active {
	transform: scale(0.92);
}

.idg-tunebtn[aria-expanded="true"] {
	background: var(--accent);
}

.idg-tunebtn svg {
	width: 21px;
	height: 21px;
}

.idg-tunebtn__dot {
	position: absolute;
	top: 5px;
	inset-inline-end: 5px;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: hsl(40 100% 62%);
	box-shadow: 0 0 0 2px hsl(var(--hue) 70% 22%);
}

.idg-tunebtn__dot[hidden] {
	display: none;
}

.idg-tune {
	position: fixed;
	z-index: 70;
	inset-inline: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	max-height: 66vh;
	max-height: 66dvh;
	padding-bottom: var(--safe-b);
	border: 1px solid hsl(0 0% 100% / 0.55);
	border-bottom: 0;
	border-radius: 22px 22px 0 0;
	background: hsl(var(--hue) 60% 98% / 0.93);
	color: var(--ink);
	box-shadow: 0 -10px 40px hsl(var(--hue) 60% 20% / 0.22);
	backdrop-filter: blur(16px) saturate(1.2);
	-webkit-backdrop-filter: blur(16px) saturate(1.2);
	font-size: 0.86rem;
	line-height: 1.6;
	transform: translateY(105%);
	transition: transform 0.45s var(--ease);
}

html[data-theme="dark"] .idg-tune {
	border-color: hsl(0 0% 100% / 0.1);
	background: hsl(var(--hue) 40% 9% / 0.9);
}

.idg-tune.is-open {
	transform: none;
}

.idg-tune[hidden] {
	display: none;
}

.idg-tune__head {
	display: flex;
	flex: none;
	align-items: center;
	gap: 8px;
	padding: 12px 14px 8px;
}

.idg-tune__title {
	flex: 1;
	margin: 0;
	font-size: 0.95rem;
	font-weight: 700;
}

.idg-tune__mode {
	display: flex;
	padding: 3px;
	border-radius: 999px;
	background: var(--line);
}

.idg-tune__mode button {
	padding: 5px 12px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 0.78rem;
	cursor: pointer;
}

.idg-tune__mode button[aria-pressed="true"] {
	background: var(--card);
	box-shadow: 0 1px 6px hsl(var(--hue) 50% 30% / 0.2);
}

.idg-tune__icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--line);
	color: inherit;
	cursor: pointer;
}

.idg-tune__icon svg {
	width: 18px;
	height: 18px;
	transition: transform 0.3s var(--ease);
}

.idg-tune.is-folded [data-act="fold"] svg {
	transform: rotate(180deg);
}

/* All the groups stay in sight: the tabs wrap onto a second line instead of scrolling sideways. */
.idg-tune__tabs {
	display: flex;
	flex: none;
	flex-wrap: wrap;
	gap: 6px;
	padding: 2px 14px 10px;
}

.idg-tune__tabs button {
	flex: none;
	padding: 6px 12px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 0.8rem;
	cursor: pointer;
}

.idg-tune__tabs button[aria-selected="true"] {
	border-color: var(--accent);
	background: var(--accent);
	color: #fff;
}

.idg-tune__body {
	flex: 1 1 auto;
	min-height: 0;
	padding: 0 14px 6px;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}

.idg-tune__row {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 0 10px;
	padding: 8px 0;
	border-bottom: 1px solid var(--line);
}

.idg-tune__row:last-child {
	border-bottom: 0;
}

.idg-tune__row label {
	font-weight: 600;
}

.idg-tune__row output {
	min-width: 3.4em;
	color: var(--accent-ink);
	font-variant-numeric: tabular-nums;
	text-align: end;
}

.idg-tune__row input[type="range"] {
	grid-column: 1 / -1;
	width: 100%;
	height: 30px;
	margin: 0;
	accent-color: var(--accent);
	cursor: pointer;
}

.idg-tune__row small {
	grid-column: 1 / -1;
	color: var(--ink-2);
	font-size: 0.72rem;
}

.idg-tune__row select {
	min-width: 9.5em;
	padding: 6px 10px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--card);
	color: inherit;
	font: inherit;
	cursor: pointer;
}

.idg-tune__row input[type="color"] {
	width: 46px;
	height: 32px;
	padding: 2px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--card);
	cursor: pointer;
}

.idg-tune__row input[type="checkbox"] {
	position: relative;
	width: 46px;
	height: 26px;
	margin: 0;
	border-radius: 13px;
	background: var(--line);
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: background 0.25s;
}

.idg-tune__row input[type="checkbox"]::before {
	content: "";
	position: absolute;
	top: 3px;
	inset-inline-start: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 4px hsl(0 0% 0% / 0.25);
	transition: transform 0.25s var(--ease);
}

.idg-tune__row input[type="checkbox"]:checked {
	background: var(--accent);
}

.idg-tune__row input[type="checkbox"]:checked::before {
	transform: translateX(calc(20px * var(--dirx)));
}

.idg-tune__foot {
	display: flex;
	flex: none;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	padding: 10px 14px 12px;
	border-top: 1px solid var(--line);
}

.idg-tune__save {
	padding: 10px 24px;
	border: 0;
	border-radius: 999px;
	background: var(--accent);
	color: #fff;
	font: 600 0.88rem/1.2 var(--font);
	cursor: pointer;
}

.idg-tune__save:disabled {
	opacity: 0.45;
	cursor: default;
}

.idg-tune__ghost {
	padding: 9px 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font: 0.82rem/1.2 var(--font);
	cursor: pointer;
}

.idg-tune__ghost[hidden] {
	display: none;
}

.idg-tune__note {
	flex: 1 1 100%;
	min-height: 1.2em;
	margin: 0;
	color: var(--ink-2);
	font-size: 0.74rem;
}

.idg-tune.is-folded .idg-tune__tabs,
.idg-tune.is-folded .idg-tune__body,
.idg-tune.is-folded .idg-tune__foot {
	display: none;
}

@media (min-width: 820px) {
	.idg-tune {
		top: calc(var(--wp-admin--admin-bar--height, 0px) + 16px);
		bottom: auto;
		inset-inline: auto 16px;
		width: 370px;
		max-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px) - 32px);
		border-bottom: 1px solid hsl(0 0% 100% / 0.55);
		border-radius: 22px;
		transform: translateX(calc(115% * var(--dirx)));
	}

	.idg-tunebtn[aria-expanded="true"] {
		opacity: 0;
		pointer-events: none;
	}
}

/* Motion preferences ------------------------------------------------------------------------------ */

/* The name under the portrait ( template-parts/home-story.php ): written out while the beads hold the face. */
.idg-intro {
	position: absolute;
	inset-inline: 0;
	bottom: calc(var(--dock-h) + var(--safe-b) + 13vh);
	z-index: 2;
	padding: 0 var(--pad);
	color: #fff;
	text-align: center;
	text-shadow: 0 2px 22px hsl(var(--hue) 80% 8% / 0.55);
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.6s var(--ease);
}

.idg-intro.is-on {
	opacity: 1;
}

.idg-intro__name {
	min-height: 1.3em;
	margin: 0;
	font-size: clamp(1.9rem, 7.4vw, 3.4rem);
	font-weight: 800;
	line-height: 1.3;
}

.idg-intro__role {
	min-height: 1.5em;
	margin: 0.35em 0 0;
	font-size: clamp(0.95rem, 3.6vw, 1.25rem);
	font-weight: 300;
	line-height: 1.5;
	opacity: 0.88;
}

/* A longer line ( under the heart ) is set a little smaller than a name. */
.idg-intro--line .idg-intro__name {
	font-size: clamp(1.45rem, 6.2vw, 2.7rem);
	font-weight: 700;
	line-height: 1.45;
}

.idg-intro .is-typing::after {
	content: "";
	display: inline-block;
	width: 2px;
	height: 0.9em;
	margin-inline-start: 3px;
	vertical-align: -0.1em;
	background: currentColor;
	animation: idg-caret 0.8s steps(1) infinite;
}

/* ---------------------------------------------------------------------------
 * Contact by the fire (template-parts/shell-camp.php): the page steps aside for the camp under the tree behind the
 * cabin, and a glass card holds the ways to get in touch. A sheet with a glowing edge covers the change.
 * ------------------------------------------------------------------------ */

.idg-camp {
	position: fixed;
	inset: 0;
	z-index: 75;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 16px 14px calc(14px + var(--safe-b));
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.6s var(--ease), visibility 0s 0.6s;
}

.idg-camp[hidden] {
	display: none;
}

.idg-camp.is-open {
	opacity: 1;
	visibility: visible;
	transition-delay: 0s;
}

.idg-camp__card {
	position: relative;
	width: min(100%, 440px);
	max-height: 40vh;
	max-height: 40dvh;
	overflow: auto;
	padding: 18px 18px 16px;
	border: 1px solid hsl(var(--hue) 100% 92% / 0.3);
	border-radius: 24px;
	color: #fff;
	background: linear-gradient(140deg, hsl(var(--hue) 70% 14% / 0.72), hsl(var(--h2) 60% 24% / 0.62));
	-webkit-backdrop-filter: blur(18px) saturate(1.5);
	backdrop-filter: blur(18px) saturate(1.5);
	box-shadow: 0 18px 50px hsl(var(--hue) 80% 6% / 0.45), inset 0 1px 0 hsl(0 0% 100% / 0.22);
	pointer-events: auto;
	transform: translateY(18px);
	transition: transform 0.9s var(--ease);
}

.idg-camp.is-open .idg-camp__card {
	transform: none;
}

.idg-camp__close {
	position: absolute;
	top: 12px;
	inset-inline-end: 12px;
	width: 38px;
	height: 38px;
}

.idg-camp .idg-eyebrow {
	margin-bottom: 0.7rem;
}

/* The card is not part of the page, so nothing waits for it to scroll into view. */
.idg-camp [data-reveal] {
	opacity: 1;
	transform: none;
}

.idg-camp__title {
	margin: 0 0 0.9rem;
	padding-inline-end: 44px;
	font-size: clamp(1.2rem, 4.6vw, 1.85rem);
	font-weight: 800;
	line-height: 1.35;
}

.idg-camp__title em {
	font-style: normal;
	font-weight: 300;
}

.idg-camp__text {
	display: none;
	margin: 0 0 1.1rem;
	font-size: 0.9rem;
	line-height: 1.85;
	opacity: 0.86;
}

.idg-camp__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}


/* The ways to get in touch: a row of round glass buttons, each with its network's own icon, tinted with its colour
   under the finger or pointer. */
.idg-camp__ways {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}

.idg-social {
	--net: hsl(0 0% 100% / 0.5);
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1px solid hsl(0 0% 100% / 0.32);
	border-radius: 50%;
	color: #fff;
	background: linear-gradient(145deg, hsl(0 0% 100% / 0.22), hsl(0 0% 100% / 0.06));
	-webkit-backdrop-filter: blur(12px) saturate(1.6);
	backdrop-filter: blur(12px) saturate(1.6);
	box-shadow: 0 6px 18px hsl(var(--hue) 70% 8% / 0.25), inset 0 1px 0 hsl(0 0% 100% / 0.4);
	transition: transform 0.4s var(--ease), background 0.4s, box-shadow 0.4s, border-color 0.4s;
}

.idg-social .idg-icon {
	width: 21px;
	height: 21px;
}

.idg-social:hover,
.idg-social:focus-visible {
	transform: translateY(-2px);
	border-color: color-mix(in srgb, var(--net) 70%, white);
	background: linear-gradient(145deg, color-mix(in srgb, var(--net) 55%, transparent), hsl(0 0% 100% / 0.08));
	box-shadow: 0 10px 26px color-mix(in srgb, var(--net) 45%, transparent), inset 0 1px 0 hsl(0 0% 100% / 0.45);
}

.idg-social:active {
	transform: scale(0.92);
}

.idg-social[data-net="telegram"] {
	--net: #2aabee;
}

.idg-social[data-net="whatsapp"] {
	--net: #25d366;
}

.idg-social[data-net="instagram"] {
	--net: #e1306c;
}

.idg-social[data-net="bale"] {
	--net: #23b89a;
}

.idg-social[data-net="linkedin"] {
	--net: #0a66c2;
}

.idg-social[data-net="phone"],
.idg-social[data-net="mail"] {
	--net: hsl(var(--h2) 90% 70%);
}

/* The card writes itself ( assets/js/app.js ): a caret follows the words being typed, and the buttons and links come up
   once everything is written. */
.idg-camp .is-typing::after {
	content: "";
	display: inline-block;
	width: 2px;
	height: 1em;
	margin-inline-start: 3px;
	vertical-align: -0.14em;
	background: currentColor;
	animation: idg-caret 0.8s steps(1) infinite;
}

@keyframes idg-caret {
	50% {
		opacity: 0;
	}
}

.idg-camp__actions,
.idg-camp__ways {
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.6s var(--ease), transform 0.8s var(--ease);
}

.idg-camp__card.is-typed .idg-camp__actions,
.idg-camp__card.is-typed .idg-camp__ways {
	opacity: 1;
	transform: none;
}

.idg-camp__card.is-typed .idg-camp__ways {
	transition-delay: 0.15s;
}

/* While the camp is open the page, the dock and the settings fade away and the page holds still; when the card is
   closed they fade back in as the camera lands ( camp-back ). */
html.is-camp {
	overflow: hidden;
}

html.is-camp .idg-app {
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.9s var(--ease), visibility 0s 0.9s;
}

html.camp-back .idg-app {
	transition: opacity 0.9s var(--ease);
}

html.is-camp .idg-dock,
html.is-camp .idg-mode,
html.is-camp .idg-tunebtn,
html.is-camp .idg-tune {
	opacity: 0;
	pointer-events: none;
}

@media (min-width: 900px) {
	.idg-camp {
		align-items: center;
		justify-content: flex-start;
		padding: 40px clamp(32px, 5vw, 80px);
	}

	.idg-camp__card {
		width: 400px;
		max-height: calc(100vh - 80px);
		padding: 26px 26px 22px;
	}

	.idg-camp__text {
		display: block;
	}
}

/* The portfolio's room: the cards on a ring drawn with WebGL ( assets/js/reel.js ) ----------------------------- */

:root {
	--gallery: hsl(var(--hue) 46% 6%);
}

.idg-flip-back {
	transform: scaleX(calc(-1 * var(--dirx)));
}

.idg-projects.has-reel {
	padding-top: 0;
}

/* With the carousel the room shows the section's title and the cards: the grid stays for those without WebGL. */
html.js .idg-projects.has-reel:not(.reel-off) > .idg-section__head,
html.js .idg-projects.has-reel:not(.reel-off) > .idg-grid {
	display: none;
}

html:not(.js) .idg-reel,
.idg-projects.reel-off .idg-reel {
	display: none;
}

html:not(.js) .idg-projects.has-reel,
.idg-projects.has-reel.reel-off {
	padding-top: clamp(60px, 13vw, 120px);
}

/* Behind the portal the portfolio comes first, straight out of the dark: no rounded top, no shadow. */
.idg-sheet--portal > .idg-projects:first-child {
	border-radius: 0;
	box-shadow: none;
}

.idg-reel {
	--reel-step: 38vh;
	--reel-tail: calc(var(--reel-step) * 0.72);
	position: relative;
	height: calc(100vh + (var(--n, 6) - 1) * var(--reel-step) + var(--reel-tail));
	margin-inline: calc(-1 * var(--pad));
	background: var(--gallery);
}

.idg-reel__stage {
	--reel-glow: 168 85 247;
	--burst: 0;
	position: sticky;
	top: 0;
	height: 100vh;
	overflow: hidden;
	color: #fff;
	background: var(--gallery);
	touch-action: pan-y;
	-webkit-user-select: none;
	user-select: none;
}

/* The room's light: a glow above the ring and the colour of the card in front on the floor; a burst as it unfolds. */
.idg-reel__room {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(70% 45% at 50% 40%, rgb(var(--reel-glow) / 0.16), transparent 72%),
		radial-gradient(90% 30% at 50% 74%, rgb(var(--reel-glow) / 0.2), transparent 70%),
		linear-gradient(180deg, transparent 0%, hsl(var(--hue) 40% 3% / 0.6) 100%);
	transition: opacity 1.4s var(--ease);
}

.idg-reel__stage.is-portal:not(.is-open) .idg-reel__room {
	opacity: 0;
}

.idg-reel__room::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(42% 30% at 50% 41%, rgb(255 255 255 / 0.5), rgb(var(--reel-glow) / 0.32) 42%, transparent 74%);
	opacity: var(--burst);
}

.idg-reel__canvas {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
}

/* The page's own colour over the room: as it comes ( without the portal ) and as it is left after the last card. */
.idg-reel__day {
	position: absolute;
	inset: 0;
	z-index: 3;
	background: var(--paper);
	opacity: 0;
	pointer-events: none;
}

.idg-reel__head {
	position: absolute;
	z-index: 2;
	top: calc(var(--wp-admin--admin-bar--height, 0px) + 80px + env(safe-area-inset-top, 0px));
	inset-inline: var(--pad);
	max-width: 34rem;
	pointer-events: none;
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 0.9s var(--ease) 0.25s, transform 0.9s var(--ease) 0.25s;
}

.idg-reel__stage.is-open .idg-reel__head {
	opacity: 1;
	transform: none;
}

.idg-reel__head .idg-eyebrow {
	margin-bottom: 6px;
	color: rgb(255 255 255 / 0.7);
}

.idg-reel__title {
	margin: 0;
	font-size: clamp(1.45rem, 6.2vw, 3rem);
	font-weight: 800;
	line-height: 1.38;
	text-wrap: balance;
}

.idg-reel__title.is-typing::after,
.idg-pview__title.is-typing::after {
	content: "";
	display: inline-block;
	width: 2px;
	height: 0.9em;
	margin-inline-start: 4px;
	vertical-align: -0.1em;
	background: currentColor;
	animation: idg-caret 0.8s steps(1) infinite;
}

.idg-reel__note {
	display: none;
	margin: 8px 0 0;
	font-size: 0.82rem;
	line-height: 1.9;
	color: rgb(255 255 255 / 0.62);
}

.idg-reel__hud {
	position: absolute;
	z-index: 2;
	inset: 0;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.8s var(--ease) 0.6s;
}

.idg-reel__stage.is-open .idg-reel__hud {
	opacity: 1;
}

.idg-reel.is-viewing .idg-reel__hud,
.idg-reel.is-viewing .idg-reel__head {
	opacity: 0;
	transition-delay: 0s;
	transition-duration: 0.4s;
}

.idg-reel__info {
	position: absolute;
	inset-inline: var(--pad);
	bottom: calc(var(--dock-h) + 118px + var(--safe-b));
	text-align: center;
}

.idg-reel__tags {
	min-height: 1.6em;
	margin: 0 0 2px;
	font: 500 0.7rem/1.6 var(--label-font);
	color: rgb(255 255 255 / 0.6);
}

.idg-reel__name {
	margin: 0;
	font-size: clamp(1.3rem, 5.8vw, 2.3rem);
	font-weight: 700;
	line-height: 1.4;
}

.idg-reel__open {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 10px;
	padding: 9px 18px;
	border: 1px solid rgb(255 255 255 / 0.24);
	border-radius: 999px;
	color: #fff;
	background: rgb(255 255 255 / 0.08);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	box-shadow: 0 0 26px rgb(var(--reel-glow) / 0.35), inset 0 1px 0 rgb(255 255 255 / 0.2);
	font: inherit;
	font-size: 0.86rem;
	font-weight: 600;
	cursor: pointer;
	pointer-events: auto;
	transition: background 0.3s, transform 0.3s var(--ease), box-shadow 0.6s;
}

.idg-reel__open:hover {
	background: rgb(255 255 255 / 0.16);
}

.idg-reel__open:active {
	transform: scale(0.95);
}

.idg-reel__open .idg-icon {
	width: 16px;
	height: 16px;
}

.idg-reel__info.is-swap > * {
	animation: idg-reel-swap 0.55s var(--ease) both;
}

.idg-reel__info.is-swap > :nth-child(2) {
	animation-delay: 0.05s;
}

.idg-reel__info.is-swap > :nth-child(3) {
	animation-delay: 0.1s;
}

@keyframes idg-reel-swap {
	from {
		opacity: 0;
		transform: translateY(8px);
		filter: blur(4px);
	}
	to {
		opacity: 1;
		transform: none;
		filter: none;
	}
}

/* The filter: a glass pill above the bar; its menu opens upward, the choices of a group beside it ( on a phone, in
   its place ). */
.idg-reel__filter {
	position: absolute;
	z-index: 4;
	left: 50%;
	bottom: calc(var(--dock-h) + 64px + var(--safe-b));
	transform: translateX(-50%);
	pointer-events: auto;
}

.idg-reel__filterbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-width: 120px;
	height: 40px;
	padding: 12px 24px;
	border: 1px solid rgb(255 255 255 / 0.16);
	border-radius: 9999px;
	color: #fff;
	background: linear-gradient(135deg, hsl(var(--hue) 75% 30% / 0.8), hsl(var(--h2) 70% 40% / 0.64));
	-webkit-backdrop-filter: blur(16px) saturate(1.5);
	backdrop-filter: blur(16px) saturate(1.5);
	box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.22), 0 10px 30px hsl(var(--hue) 80% 16% / 0.5);
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	transition: transform 0.3s var(--ease), box-shadow 0.4s;
}

.idg-reel__filterbtn:hover,
.idg-reel__filter.is-open .idg-reel__filterbtn {
	box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.3), 0 10px 34px rgb(var(--reel-glow) / 0.5);
}

.idg-reel__filterbtn:active {
	transform: scale(0.96);
}

.idg-reel__filterbtn .idg-icon {
	width: 18px;
	height: 18px;
}

.idg-reel__menu {
	position: absolute;
	left: 50%;
	bottom: calc(100% + 10px);
	transform: translateX(-50%);
}

.idg-reel__panel {
	width: 214px;
	padding: 10px;
	border: 1px solid rgb(255 255 255 / 0.18);
	border-radius: 18px;
	color: #fff;
	background: linear-gradient(150deg, hsl(var(--hue) 70% 30% / 0.86), hsl(var(--h2) 65% 36% / 0.74));
	-webkit-backdrop-filter: blur(18px) saturate(1.5);
	backdrop-filter: blur(18px) saturate(1.5);
	box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.2), 0 18px 44px hsl(var(--hue) 80% 10% / 0.55);
	opacity: 0;
	transform: translateY(8px) scale(0.92);
	transform-origin: 50% 100%;
	transition: opacity 0.28s var(--ease), transform 0.36s var(--ease);
}

.idg-reel__menu.is-in .idg-reel__panel {
	opacity: 1;
	transform: none;
}

.idg-reel__panel--sub {
	position: absolute;
	bottom: 0;
	inset-inline-start: calc(100% + 8px);
	width: 224px;
	max-height: min(52vh, 360px);
	overflow-y: auto;
	overscroll-behavior: contain;
	transform-origin: 0 100%;
}

.idg-reel__menuhead {
	margin: 2px 8px 8px;
	font: 500 0.66rem/1.4 var(--label-font);
	letter-spacing: 0.08em;
	color: rgb(255 255 255 / 0.62);
}

.idg-reel__row,
.idg-reel__opt,
.idg-reel__back {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 9px 10px;
	border: 0;
	border-radius: 10px;
	color: #fff;
	background: transparent;
	font: inherit;
	font-size: 0.86rem;
	line-height: 1.4;
	text-align: start;
	cursor: pointer;
	transition: background 0.2s;
}

.idg-reel__row + .idg-reel__row,
.idg-reel__opt + .idg-reel__opt {
	margin-top: 2px;
}

.idg-reel__row:hover,
.idg-reel__row.is-on,
.idg-reel__opt:hover,
.idg-reel__back:hover {
	background: rgb(255 255 255 / 0.15);
}

.idg-reel__opt.is-on {
	background: rgb(var(--reel-glow) / 0.8);
	box-shadow: 0 4px 16px rgb(var(--reel-glow) / 0.35);
}

.idg-reel__row span,
.idg-reel__opt span {
	flex: 1;
}

.idg-reel__row .idg-icon,
.idg-reel__opt .idg-icon,
.idg-reel__back .idg-icon {
	flex: none;
	width: 17px;
	height: 17px;
}

.idg-reel__opt small {
	font: 500 0.7rem/1 var(--label-font);
	opacity: 0.62;
}

.idg-reel__back {
	display: none;
	margin-bottom: 4px;
	opacity: 0.8;
}

/* The bar: a thin line for every card, the number of the one in front and of them all, and a marker that follows the
   ring as it turns. Dragging along it runs through the cards. */
.idg-reel__bar {
	position: absolute;
	z-index: 3;
	left: 50%;
	bottom: calc(var(--dock-h) + 24px + var(--safe-b));
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 6px 4px;
	color: rgb(255 255 255 / 0.86);
	font: 500 11px/1 var(--label-font);
	letter-spacing: 0.04em;
	transform: translateX(-50%);
	cursor: pointer;
	pointer-events: auto;
	touch-action: none;
	-webkit-tap-highlight-color: transparent;
}

.idg-reel__bar:focus-visible {
	outline: 1px solid rgb(255 255 255 / 0.5);
	outline-offset: 4px;
	border-radius: 6px;
}

.idg-reel__now,
.idg-reel__all {
	min-width: 2ch;
	text-align: center;
}

.idg-reel__ticks {
	--at: 0;
	position: relative;
	display: flex;
	align-items: center;
	gap: 6px;
	height: 20px;
}

.idg-reel__ticks b {
	display: block;
	width: 1.5px;
	height: 13px;
	border-radius: 1px;
	background: rgb(255 255 255 / 0.3);
	transition: opacity 0.25s, background 0.3s;
}

.idg-reel__ticks b.is-card {
	height: 15px;
	background: rgb(255 255 255 / 0.58);
}

.idg-reel__ticks b.is-under {
	opacity: 0;
}

.idg-reel__mark {
	position: absolute;
	top: 50%;
	inset-inline-start: calc(var(--at) * (100% - 1.5px) - 4.75px);
	width: 11px;
	height: 19px;
	margin-top: -9.5px;
	border: 1.5px solid #fff;
	border-radius: 4px;
	box-shadow: 0 0 10px rgb(var(--reel-glow) / 0.8);
	pointer-events: none;
}

@media (max-width: 699px) {
	.idg-reel__panel--sub {
		inset-inline-start: auto;
		left: 50%;
		transform: translateX(-50%) translateY(8px) scale(0.92);
		transform-origin: 50% 100%;
	}

	.idg-reel__menu.is-in .idg-reel__panel--sub {
		transform: translateX(-50%);
	}

	.idg-reel__menu.is-sub .idg-reel__panel--main {
		opacity: 0;
		pointer-events: none;
	}

	.idg-reel__back {
		display: flex;
	}
}

@media (min-width: 900px) {
	.idg-reel {
		--reel-step: 44vh;
	}

	.idg-reel__head {
		top: calc(var(--wp-admin--admin-bar--height, 0px) + 96px);
	}

	.idg-reel__note {
		display: block;
	}

	.idg-reel__info {
		inset-inline: var(--pad) auto;
		bottom: calc(var(--dock-h) + 44px);
		max-width: 30rem;
		text-align: start;
	}

	.idg-reel__filter {
		bottom: calc(var(--dock-h) + 70px);
	}

	.idg-reel__bar {
		bottom: calc(var(--dock-h) + 28px);
	}
}

/* An opened project: its picture ( the card that flew out of the ring, drawn on the room's canvas, under the box kept
   for it here ) with its words beside or under it. */
.idg-pview {
	--reel-glow: 168 85 247;
	position: fixed;
	inset: 0;
	z-index: 72;
	color: #fff;
}

/* The room behind is dimmed by the canvas itself; this only darkens the side the words are on, never the picture. */
.idg-pview__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 0, transparent calc(44vh + 14px), hsl(var(--hue) 50% 4% / 0.82) calc(44vh + 90px));
	background: linear-gradient(180deg, transparent 0, transparent calc(44svh + 14px), hsl(var(--hue) 50% 4% / 0.82) calc(44svh + 90px));
	opacity: 0;
	transition: opacity 0.8s var(--ease) 0.3s;
}

.idg-pview.is-in .idg-pview__shade {
	opacity: 1;
}

.idg-pview__media {
	position: absolute;
	top: calc(14px + env(safe-area-inset-top, 0px));
	inset-inline: 14px;
	height: 44vh;
	height: 44svh;
	border-radius: 24px;
	pointer-events: none;
}

.idg-pview__panel {
	position: absolute;
	inset-inline: 0;
	top: calc(44vh + 30px);
	top: calc(44svh + 30px);
	bottom: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	padding: 4px var(--pad) calc(32px + var(--safe-b));
}

.idg-pview__inner > * {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 0.6s var(--ease), transform 0.7s var(--ease);
}

.idg-pview.is-open .idg-pview__inner > * {
	opacity: 1;
	transform: none;
}

.idg-pview.is-open .idg-pview__inner > :nth-child(3) {
	transition-delay: 0.12s;
}

.idg-pview.is-open .idg-pview__inner > :nth-child(4) {
	transition-delay: 0.2s;
}

.idg-pview.is-open .idg-pview__inner > :nth-child(5) {
	transition-delay: 0.28s;
}

.idg-pview.is-open .idg-pview__inner > :nth-child(6) {
	transition-delay: 0.36s;
}

.idg-pview__count {
	margin: 0 0 6px;
	font: 500 0.72rem/1.6 var(--label-font);
	color: rgb(255 255 255 / 0.6);
}

.idg-pview__title {
	min-height: 1.3em;
	margin: 0 0 10px;
	font-size: clamp(1.7rem, 7.4vw, 3.2rem);
	font-weight: 800;
	line-height: 1.3;
}

.idg-pview__lead {
	margin: 0 0 18px;
	font-size: 1.02rem;
	line-height: 1.9;
	color: rgb(255 255 255 / 0.88);
}

.idg-pview__meta {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px 18px;
	margin: 0 0 18px;
	padding: 16px 0;
	border-block: 1px solid rgb(255 255 255 / 0.12);
}

.idg-pview__meta > [data-k="tags"] {
	grid-column: 1 / -1;
}

.idg-pview__meta dt {
	margin: 0 0 4px;
	font: 500 0.68rem/1.4 var(--label-font);
	color: rgb(var(--reel-glow));
	filter: brightness(1.35);
}

.idg-pview__meta dd {
	margin: 0;
	font-size: 0.92rem;
}

.idg-pview__meta ul {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.idg-pview__meta li {
	padding: 3px 11px;
	border: 1px solid rgb(255 255 255 / 0.18);
	border-radius: 999px;
	background: rgb(255 255 255 / 0.05);
	font-size: 0.78rem;
}

.idg-pview__text {
	margin: 0 0 22px;
	font-size: 0.92rem;
	line-height: 2;
	color: rgb(255 255 255 / 0.74);
}

.idg-pview__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
}

.idg-pview__site {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #fff;
	font-size: 0.88rem;
	text-decoration: none;
	opacity: 0.85;
}

.idg-pview__site:hover {
	opacity: 1;
}

.idg-pview__site .idg-icon {
	width: 18px;
	height: 18px;
}

.idg-pview__close {
	position: absolute;
	z-index: 2;
	top: calc(26px + env(safe-area-inset-top, 0px));
	inset-inline-end: 26px;
	border: 1px solid rgb(255 255 255 / 0.2);
	color: #fff;
	background: hsl(var(--hue) 40% 8% / 0.5);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	opacity: 0;
	transition: opacity 0.5s var(--ease) 0.3s, transform 0.3s var(--ease);
}

.idg-pview.is-in .idg-pview__close {
	opacity: 1;
}

html.is-pview {
	overflow: hidden;
}

html.is-pview .idg-dock,
html.is-pview .idg-mode,
html.is-pview .idg-tunebtn,
html.is-pview .idg-tune {
	opacity: 0;
	pointer-events: none;
}

@media (min-width: 900px) {
	.idg-pview__media {
		top: 9vh;
		bottom: 9vh;
		inset-inline: auto 5vw;
		width: min(42vw, 620px);
		height: auto;
		border-radius: 28px;
	}

	.idg-pview__panel {
		top: 0;
		inset-inline: 0 auto;
		display: flex;
		flex-direction: column;
		width: calc(100% - min(42vw, 620px) - 5vw);
		padding: 9vh clamp(32px, 6vw, 96px);
	}

	.idg-pview__inner {
		max-width: 36rem;
		margin-block: auto;
	}

	.idg-pview__shade {
		background: linear-gradient(to right, hsl(var(--hue) 50% 4% / 0.8) 0%, hsl(var(--hue) 50% 4% / 0.62) 38%, transparent 58%);
	}

	[dir="rtl"] .idg-pview__shade {
		background: linear-gradient(to left, hsl(var(--hue) 50% 4% / 0.8) 0%, hsl(var(--hue) 50% 4% / 0.62) 38%, transparent 58%);
	}

	.idg-pview__close {
		top: 30px;
		inset-inline: 30px auto;
	}
}

/* Unread replies from the assistant or a person, on its button in the dock. */
.idg-orbbtn[data-badge]::after {
	content: attr(data-badge);
	position: absolute;
	top: -4px;
	inset-inline-end: -4px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 9px;
	background: hsl(4 82% 56%);
	color: #fff;
	font: 700 11px/18px var(--font);
	text-align: center;
	box-shadow: 0 0 0 2px hsl(var(--hue) 80% 30%);
}

.idg-orbbtn {
	position: relative;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		transition-delay: 0ms !important;
	}
}
