/* =====================================================================
   racunaj.me — O nama
   ---------------------------------------------------------------------
   One page, one sheet. Tokens come from .rmc-page (inner.css), which in
   turn reads the theme's variables when the theme is active and falls
   back to its own values otherwise — so this page looks finished under
   any theme.

   Gold appears three times on the whole page and never as a background:
   the eyebrow rule, the quote mark, and the tag dots. That is what makes
   it read as a detail rather than a colour scheme.
   ===================================================================== */

/*
 * The design system has no global box-sizing reset, so padding and borders add
 * to declared widths. A 100%-wide button with 26px of padding then overflows
 * its column by 52px and the phone gets a horizontal scrollbar. Scoped to this
 * page rather than fixed globally: a site-wide reset would silently reflow
 * every other page, which is not what this task is.
 */
.rmc-about,
.rmc-about *,
.rmc-about *::before,
.rmc-about *::after {
	box-sizing: border-box;
}

.rmc-about {
	--ab-gold: #ffc866;
	--ab-line: rgba(255, 255, 255, 0.09);
	--ab-card: rgba(255, 255, 255, 0.04);
	--ab-shadow: 0 26px 60px rgba(4, 6, 26, 0.55);
}

/* ---------- shared bits ------------------------------------------- */

.rmc-ab-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 20px;
	font-size: clamp(0.68rem, 1.1vw, 0.76rem);
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--rmc-dim);
}

.rmc-ab-eyebrow::before {
	content: "";
	width: 28px;
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--ab-gold), rgba(255, 200, 102, 0));
}

.rmc-ab-h2 {
	margin: 0 0 22px;
	font-size: clamp(1.5rem, 3.2vw, 2.15rem);
	line-height: 1.22;
	letter-spacing: -0.015em;
	color: var(--rmc-text);
}

.rmc-ab-h2--center {
	text-align: center;
	margin-bottom: clamp(28px, 4vw, 44px);
}

/* ---------- buttons ------------------------------------------------
 * Shape and meaning are carried by border, weight and fill — not by
 * colour alone, so the two levels stay distinguishable without it.
 */

.rmc-ab-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.rmc-ab-actions--center {
	justify-content: center;
}

.rmc-ab-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 0 26px;
	border-radius: 999px;
	border: 1px solid transparent;
	font: inherit;
	font-weight: 650;
	font-size: 0.98rem;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: transform 0.25s var(--rmc-ease), box-shadow 0.25s var(--rmc-ease),
		background-color 0.25s var(--rmc-ease), border-color 0.25s var(--rmc-ease);
}

.rmc-ab-btn--primary {
	background: var(--rmc-grad);
	color: #fff;
	box-shadow: 0 12px 30px rgba(77, 124, 255, 0.32);
}

.rmc-ab-btn--ghost {
	background: var(--ab-card);
	border-color: var(--rmc-brd);
	color: var(--rmc-text);
	backdrop-filter: blur(8px);
}

.rmc-ab-btn:hover {
	transform: translateY(-2px);
}

.rmc-ab-btn--ghost:hover {
	border-color: rgba(255, 255, 255, 0.24);
	background: rgba(255, 255, 255, 0.075);
}

.rmc-ab-btn:focus-visible {
	outline: 3px solid var(--ab-gold);
	outline-offset: 3px;
}

/* =====================================================================
   HERO
   ===================================================================== */

.rmc-ab-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding-top: clamp(112px, 12vw, 164px);
	padding-bottom: clamp(40px, 6vw, 76px);
	margin-bottom: var(--rmc-gap);
}

.rmc-ab-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
	grid-template-areas:
		"content visual"
		"actions visual";
	align-items: center;
	column-gap: clamp(28px, 4vw, 64px);
	row-gap: 26px;
}

.rmc-ab-hero__content {
	grid-area: content;
	align-self: end;
}

.rmc-ab-hero__actions {
	grid-area: actions;
	align-self: start;
}

.rmc-ab-hero__visual {
	grid-area: visual;
	position: relative;
	display: flex;
	justify-content: center;
}

.rmc-ab-hero__title {
	margin: 0 0 20px;
	max-width: 15ch;
	font-size: clamp(2rem, 4.6vw, 3.35rem);
	line-height: 1.08;
	letter-spacing: -0.025em;
	color: var(--rmc-text);
}

.rmc-ab-hero__lead {
	margin: 0;
	max-width: 52ch;
	font-size: clamp(1rem, 1.5vw, 1.12rem);
	line-height: 1.72;
	color: var(--rmc-soft);
}

/* ---------- the photograph -----------------------------------------
 * No frame, no rectangle. The edges are feathered with a mask so the
 * picture blends into the page; the image file itself is untouched.
 */

.rmc-ab-photo {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	max-width: 620px;
	height: auto;
	border: 0;

	/*
	 * Two masks multiplied: an oval that keeps the middle solid and lets the
	 * corners go, and a soft border on all four edges. Together they dissolve
	 * the rectangle without touching the faces, which sit well inside the
	 * fully opaque part.
	 */
	-webkit-mask-image:
		radial-gradient(78% 82% at 50% 46%, #000 42%, rgba(0, 0, 0, 0.6) 74%, rgba(0, 0, 0, 0) 100%),
		linear-gradient(to right, rgba(0, 0, 0, 0) 0, #000 14%, #000 86%, rgba(0, 0, 0, 0) 100%),
		linear-gradient(to bottom, rgba(0, 0, 0, 0) 0, #000 12%, #000 84%, rgba(0, 0, 0, 0) 100%);
	-webkit-mask-composite: source-in;
	mask-image:
		radial-gradient(78% 82% at 50% 46%, #000 42%, rgba(0, 0, 0, 0.6) 74%, rgba(0, 0, 0, 0) 100%),
		linear-gradient(to right, rgba(0, 0, 0, 0) 0, #000 14%, #000 86%, rgba(0, 0, 0, 0) 100%),
		linear-gradient(to bottom, rgba(0, 0, 0, 0) 0, #000 12%, #000 84%, rgba(0, 0, 0, 0) 100%);
	mask-composite: intersect;
}

/* The glow behind the silhouettes. */
.rmc-ab-photo__halo {
	position: absolute;
	z-index: 0;
	inset: -12% -6% -18%;
	pointer-events: none;
	background:
		radial-gradient(46% 52% at 36% 46%, rgba(77, 124, 255, 0.42), rgba(77, 124, 255, 0) 70%),
		radial-gradient(44% 50% at 68% 52%, rgba(180, 107, 255, 0.36), rgba(180, 107, 255, 0) 72%);
	filter: blur(14px);
}

/* ---------- background decoration ---------------------------------- */

.rmc-ab-hero__deco {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	overflow: hidden;
	color: var(--rmc-blue);
}

.rmc-ab-hero__glow {
	position: absolute;
	border-radius: 50%;
	filter: blur(90px);
}

.rmc-ab-hero__glow--blue {
	width: 46vw;
	height: 46vw;
	max-width: 620px;
	max-height: 620px;
	top: -16%;
	left: -12%;
	background: rgba(77, 124, 255, 0.20);
}

.rmc-ab-hero__glow--violet {
	width: 40vw;
	height: 40vw;
	max-width: 540px;
	max-height: 540px;
	right: -10%;
	bottom: -24%;
	background: rgba(180, 107, 255, 0.17);
}

.rmc-ab-hero__axes {
	position: absolute;
	top: 6%;
	left: 50%;
	width: min(60vw, 760px);
	height: auto;
	opacity: 0.2;
	transform: translateX(-58%);
}

.rmc-ab-hero__fx {
	position: absolute;
	font-family: "Cambria Math", Cambria, Georgia, serif;
	font-style: italic;
	font-size: clamp(0.9rem, 1.6vw, 1.25rem);
	color: var(--rmc-cyan);
	opacity: 0.24;
	white-space: nowrap;
}

.rmc-ab-hero__fx--1 { top: 18%; left: 4%; }
.rmc-ab-hero__fx--2 { bottom: 16%; left: 30%; }
.rmc-ab-hero__fx--3 { top: 30%; right: 5%; }

/* =====================================================================
   THE SHORT STORY
   ===================================================================== */

.rmc-ab-story__inner {
	max-width: 68ch;
}

.rmc-ab-story__inner p {
	margin: 0 0 16px;
	font-size: clamp(1rem, 1.4vw, 1.08rem);
	line-height: 1.78;
	color: var(--rmc-soft);
}

.rmc-ab-story__inner p:last-child {
	margin-bottom: 0;
}

/* =====================================================================
   THE TWO CARDS
   ===================================================================== */

.rmc-ab-people__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(20px, 2.6vw, 32px);
}

.rmc-ab-person {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	padding: clamp(26px, 3.2vw, 40px);
	border: 1px solid var(--rmc-brd);
	border-radius: var(--rmc-radius);
	background: var(--ab-card);
	backdrop-filter: blur(14px);
	box-shadow: var(--ab-shadow);
}

/* A single hairline of colour along the top edge, per person. */
.rmc-ab-person::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 2px;
	z-index: -1;
}

.rmc-ab-person--blue::before {
	background: linear-gradient(90deg, rgba(77, 124, 255, 0), #4d7cff 45%, rgba(99, 200, 245, 0.85));
}

.rmc-ab-person--violet::before {
	background: linear-gradient(90deg, rgba(180, 107, 255, 0), #b46bff 45%, rgba(255, 200, 102, 0.7));
}

.rmc-ab-person__head {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-bottom: 20px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--ab-line);
}

.rmc-ab-person__ident { min-width: 0; }

/* ---------- the portrait -------------------------------------------------
 * Three layers around one photograph, and the photograph is not one of them:
 * an outer gradient ring on the wrapper, an inner hairline drawn by ::before,
 * and a dot orbiting on ::after. The picture underneath never moves — a face
 * that drifts or pulses reads as a glitch, not as an effect.
 */
.rmc-ab-person__portrait {
	position: relative;
	flex: none;
	display: grid;
	place-items: center;
	width: 104px;
	height: 104px;
	border-radius: 50%;
	padding: 3px;
	background: conic-gradient(from 210deg, var(--ab-ring-a), var(--ab-ring-b) 38%, transparent 72%, var(--ab-ring-a));
	box-shadow:
		0 0 26px -8px var(--ab-ring-a),
		0 14px 30px -18px rgba(0, 0, 0, 0.95);
	transition: transform 0.45s var(--rmc-ease, cubic-bezier(0.22, 1, 0.36, 1));
}

.rmc-ab-person--blue .rmc-ab-person__portrait {
	--ab-ring-a: #52e2fb;
	--ab-ring-b: #4d7cff;
}

.rmc-ab-person--violet .rmc-ab-person__portrait {
	--ab-ring-a: #b46bff;
	--ab-ring-b: #7c5cff;
}

/* The second ring. Sits outside the first and breathes, slowly. */
.rmc-ab-person__portrait::before {
	content: "";
	position: absolute;
	inset: -7px;
	border-radius: 50%;
	border: 1px solid var(--ab-ring-a);
	opacity: 0.34;
	animation: rmc-ab-breathe 6.5s ease-in-out infinite;
}

/* One dot, one slow lap. The rotation is on this pseudo-element, whose only
   content is the dot itself, so nothing else on the card turns with it. */
.rmc-ab-person__portrait::after {
	content: "";
	position: absolute;
	inset: -7px;
	border-radius: 50%;
	background: radial-gradient(circle 3.5px at 50% 0, var(--ab-ring-a) 0 100%, transparent 100%);
	animation: rmc-ab-orbit 18s linear infinite;
}

.rmc-ab-person__img {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	/* Keeps the dark card from bleeding into the hair at the edge. */
	box-shadow: inset 0 0 18px -6px rgba(0, 0, 0, 0.9);
}

.rmc-ab-person:hover .rmc-ab-person__portrait {
	transform: translateY(-3px);
}

@keyframes rmc-ab-breathe {
	0%, 100% { opacity: 0.22; transform: scale(1); }
	50%      { opacity: 0.5;  transform: scale(1.035); }
}

@keyframes rmc-ab-orbit {
	from { transform: rotate(0deg); }
	to   { transform: rotate(360deg); }
}

.rmc-ab-person__name {
	margin: 0 0 6px;
	font-size: clamp(1.25rem, 2.2vw, 1.55rem);
	line-height: 1.2;
	letter-spacing: -0.015em;
	color: var(--rmc-text);
}

.rmc-ab-person__role {
	margin: 0;
	font-size: 0.92rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--rmc-cyan);
}

.rmc-ab-person--violet .rmc-ab-person__role {
	color: var(--rmc-violet);
}

.rmc-ab-person__body {
	flex: 1 1 auto;
}

.rmc-ab-person__body p {
	margin: 0 0 14px;
	font-size: 1rem;
	line-height: 1.74;
	color: var(--rmc-soft);
}

.rmc-ab-person__body p:last-child {
	margin-bottom: 0;
}

/* ---------- tags ---------- */

.rmc-ab-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 26px 0 0;
	padding: 0;
	list-style: none;
}

.rmc-ab-tag {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 14px;
	border: 1px solid var(--rmc-brd);
	border-radius: 999px;
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: var(--rmc-soft);
	background: rgba(255, 255, 255, 0.028);
}

.rmc-ab-tag::before {
	content: "";
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--ab-gold);
	opacity: 0.85;
}

/* =====================================================================
   VALUES
   ===================================================================== */

.rmc-ab-values__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(16px, 2vw, 24px);
}

.rmc-ab-value {
	padding: clamp(22px, 2.4vw, 28px);
	border: 1px solid var(--rmc-brd);
	border-radius: 18px;
	background: var(--ab-card);
	backdrop-filter: blur(12px);
	transition: transform 0.28s var(--rmc-ease), border-color 0.28s var(--rmc-ease);
}

.rmc-ab-value:hover {
	transform: translateY(-4px);
	border-color: rgba(255, 255, 255, 0.2);
}

.rmc-ab-value__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-bottom: 16px;
	border-radius: 13px;
	border: 1px solid rgba(99, 200, 245, 0.24);
	background: rgba(77, 124, 255, 0.12);
	color: var(--rmc-cyan);
}

.rmc-ab-value__icon svg {
	width: 22px;
	height: 22px;
}

.rmc-ab-value__title {
	margin: 0 0 8px;
	font-size: 1.05rem;
	line-height: 1.3;
	color: var(--rmc-text);
}

.rmc-ab-value__text {
	margin: 0;
	font-size: 0.94rem;
	line-height: 1.68;
	color: var(--rmc-soft);
}

/* =====================================================================
   QUOTE
   ===================================================================== */

.rmc-ab-quote__card {
	position: relative;
	max-width: 900px;
	margin: 0 auto;
	/* Top padding clears the quotation mark, which is positioned there. */
	padding: clamp(72px, 8vw, 104px) clamp(26px, 4vw, 60px) clamp(34px, 4.4vw, 56px);
	border: 1px solid var(--rmc-brd);
	border-radius: var(--rmc-radius);
	background:
		radial-gradient(90% 120% at 12% 0%, rgba(77, 124, 255, 0.13), rgba(77, 124, 255, 0) 62%),
		var(--ab-card);
	backdrop-filter: blur(16px);
	box-shadow: var(--ab-shadow);
	text-align: center;
}

/*
 * Out of flow. In flow, a 4.5rem quotation mark carries a glyph box whose
 * ink sits at the top and whose empty half sits below, so no line-height or
 * margin makes it clear the first line reliably — it either collides or
 * leaves a hole. Positioned, it is a mark on the card rather than a line of
 * text, which is what it is.
 */
.rmc-ab-quote__mark {
	position: absolute;
	top: clamp(12px, 2vw, 20px);
	left: 50%;
	transform: translateX(-50%);
	font-size: clamp(3rem, 6vw, 4.5rem);
	line-height: 1;
	color: var(--ab-gold);
	opacity: 0.5;
}

.rmc-ab-quote__text {
	margin: 0;
	border: 0;
	padding: 0;
}

.rmc-ab-quote__text p {
	margin: 0;
	font-size: clamp(1.08rem, 2.1vw, 1.42rem);
	line-height: 1.62;
	letter-spacing: -0.005em;
	color: var(--rmc-text);
}

.rmc-ab-quote__by {
	margin-top: 22px;
	font-size: 0.9rem;
	font-weight: 650;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--rmc-dim);
}

/* =====================================================================
   FINAL CALL
   ===================================================================== */

.rmc-ab-final__card {
	padding: clamp(32px, 4.2vw, 56px) clamp(22px, 3.6vw, 48px);
	border: 1px solid var(--rmc-brd);
	border-radius: var(--rmc-radius);
	background:
		radial-gradient(70% 130% at 50% 0%, rgba(180, 107, 255, 0.14), rgba(180, 107, 255, 0) 66%),
		var(--ab-card);
	backdrop-filter: blur(14px);
	box-shadow: var(--ab-shadow);
}

.rmc-ab-final__card .rmc-ab-h2 {
	margin-bottom: clamp(22px, 3vw, 32px);
}

/* =====================================================================
   TABLET
   ===================================================================== */

@media (max-width: 1024px) {

	.rmc-ab-hero__grid {
		column-gap: 28px;
	}

	.rmc-ab-hero__title {
		max-width: 18ch;
	}

	.rmc-ab-values__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ---------------------------------------------------------------------
 * The hero stacks here, not lower down. Kept side by side, a 768 px
 * tablet leaves the photograph about 340 px wide — a stamp next to a
 * headline, which is the one thing this page must not do to it.
 *
 * Stacked, the order is headline → photograph → buttons: the sentence
 * the page is about is still read first.
 * ------------------------------------------------------------------- */

@media (max-width: 900px) {

	.rmc-ab-hero {
		padding-top: clamp(96px, 15vw, 140px);
	}

	.rmc-ab-hero__grid {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"content"
			"visual"
			"actions";
		row-gap: 26px;
	}

	.rmc-ab-hero__title,
	.rmc-ab-hero__lead {
		max-width: none;
	}

	.rmc-ab-photo {
		max-width: min(100%, 560px);
	}

	.rmc-ab-people__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.rmc-ab-hero__fx--2 {
		display: none;
	}
}

/* =====================================================================
   PHONE
   ===================================================================== */

@media (max-width: 560px) {

	/* Full-width, stacked, thumb-sized. */
	.rmc-ab-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.rmc-ab-btn {
		width: 100%;
	}

	.rmc-ab-values__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.rmc-ab-hero__fx--3 {
		display: none;
	}

	.rmc-ab-hero__axes {
		width: 130vw;
		opacity: 0.14;
	}
}

@media (max-width: 460px) {

	.rmc-ab-values__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.rmc-ab-person {
		padding: 22px 20px;
	}

	/* Still side by side at 390 px — there is room, and stacking would push
	   the name a whole portrait's height down the card. */
	.rmc-ab-person__head {
		gap: 14px;
	}

	.rmc-ab-person__portrait {
		width: 86px;
		height: 86px;
	}
}

/* =====================================================================
   PREFERENCES
   ===================================================================== */

@media (prefers-reduced-motion: reduce) {

	.rmc-ab-btn,
	.rmc-ab-value,
	.rmc-ab-person__portrait {
		transition: none;
	}

	.rmc-ab-btn:hover,
	.rmc-ab-value:hover,
	.rmc-ab-person:hover .rmc-ab-person__portrait {
		transform: none;
	}

	/*
	 * The rings stay, the movement goes. Removing the animation outright would
	 * leave the breathing ring frozen at whatever opacity the keyframe happened
	 * to start on, so it is pinned to a settled value instead — and the
	 * orbiting dot is taken away entirely, because a dot parked at twelve
	 * o'clock looks like a rendering fault.
	 */
	.rmc-ab-person__portrait::before {
		animation: none;
		opacity: 0.34;
		transform: none;
	}

	.rmc-ab-person__portrait::after {
		animation: none;
		display: none;
	}
}

/* Feathering relies on masks. Without them the picture would sit in a
   hard rectangle, so give it a soft frame instead of a raw edge. */
@supports not ((-webkit-mask-image: radial-gradient(#000, #000)) or (mask-image: radial-gradient(#000, #000))) {

	.rmc-ab-photo {
		border: 1px solid var(--rmc-brd);
		box-shadow: var(--ab-shadow);
	}
}
