/* Odjaa's own landing and contact pages: the dark world with marigold light
   of design/Odjaa Website.dc.html. The salon sites and the sign-up pages use
   site.css and stay light; only these pages may be heavy.
 */

/* Manrope by The Manrope Project Authors, SIL Open Font License 1.1
   (fonts/manrope-OFL.txt), from @fontsource/manrope 5.3.0. */
@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/manrope-5.3.0-400.woff2") format("woff2");
}
@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("fonts/manrope-5.3.0-600.woff2") format("woff2");
}
@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("fonts/manrope-5.3.0-700.woff2") format("woff2");
}
@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-weight: 800;
	font-display: swap;
	src: url("fonts/manrope-5.3.0-800.woff2") format("woff2");
}

:root {
	--night: #0a0908;
	--night-2: #161412;
	--night-3: #1d1a17;
	--rim: #2a2724;
	--rim-2: #3a3632;
	--paper: #fbf8f3;
	--soft: #d9d3c8;
	--muted: #6b655d;
	--ink: #111111;
	--ink-2: #3f3b36;
	--sun: #f5b841;
	--sun-hover: #ffc85a;
	--clay: #f08a63;
	--clay-deep: #9e3f1c;
	--leaf: #7ccb9c;
	--sky: #9ccbea;
	--focus: #1f5577;
	--gutter: clamp(20px, 5vw, 48px);
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

[hidden] {
	/* biome-ignore lint/complexity/noImportantStyles: an element the script hides must stay hidden whatever its other classes set. */
	display: none !important;
}

html {
	-webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body.world {
	margin: 0;
	min-height: 100vh;
	background: var(--night);
	color: var(--paper);
	font-family: "Manrope", system-ui, sans-serif;
	-webkit-font-smoothing: antialiased;
}

a {
	color: inherit;
	text-decoration-color: var(--sun);
	text-underline-offset: 4px;
}

a:hover {
	color: var(--sun);
}

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

.icon {
	width: 20px;
	height: 20px;
	flex: none;
}

/* --- The warm lights behind everything ---------------------------------- */

.backdrop {
	position: fixed;
	inset: 0;
	z-index: -1;
	overflow: hidden;
	pointer-events: none;
}

.glow {
	position: absolute;
	border-radius: 50%;
	transform: translate(50vw, 34vh);
}

.glow-a {
	left: -45vmax;
	top: -45vmax;
	width: 90vmax;
	height: 90vmax;
	background: radial-gradient(
		closest-side,
		rgba(245, 184, 65, 0.17),
		rgba(245, 184, 65, 0)
	);
}

/* --- The 3D eye ------------------------------------------------------------ */

odjaa-eye-guide {
	position: fixed;
	left: 0;
	top: 0;
	z-index: 35;
	pointer-events: none;
	transform-origin: 0 0;
	will-change: transform;
	opacity: 0;
	transition: opacity 0.8s;
}

odjaa-eye-guide.shown {
	opacity: 1;
}

odjaa-eye-guide canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
	pointer-events: auto;
	cursor: pointer;
	touch-action: pan-y;
}

.eye-guide-glow {
	position: absolute;
	left: -45%;
	top: -45%;
	width: 190%;
	height: 190%;
	border-radius: 50%;
	background: radial-gradient(
		closest-side,
		rgba(245, 184, 65, 0.5),
		rgba(245, 184, 65, 0.16) 46%,
		rgba(245, 184, 65, 0) 100%
	);
	pointer-events: none;
	opacity: 0;
}

/* The flat eye shows until the 3D one has drawn, and stays without it. */
.flat-eye {
	position: absolute;
	inset: 6%;
	border-radius: 50%;
	background: var(--sun);
	border: clamp(18px, 4vw, 44px) solid #151311;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding-right: 9%;
	transition: opacity 0.6s;
}

.flat-eye.hidden {
	opacity: 0;
}

.flat-pupil {
	width: 36%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: #151311;
}

/* --- The wordmark: the eye is the O ---------------------------------------- */

.wordmark {
	display: inline-flex;
	align-items: baseline;
	font-weight: 800;
	font-size: 23px;
	line-height: 1;
	letter-spacing: -0.05em;
	color: var(--paper);
}

.wordmark-small {
	font-size: 22px;
}

.wordmark-eye {
	width: 0.74em;
	height: 0.74em;
	margin-right: 0.02em;
	align-self: center;
	flex: none;
}

/* --- Header ------------------------------------------------------------------ */

.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 40;
	transition: background 0.4s;
}

.site-header.solid {
	background: rgba(10, 9, 8, 0.72);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
}

.site-header-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 14px var(--gutter);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
}

.site-home {
	text-decoration: none;
}

.site-nav {
	display: flex;
	gap: 10px;
	align-items: center;
}

.nav-link,
.nav-start {
	text-decoration: none;
	font-size: 14px;
	font-weight: 800;
	border-radius: 999px;
	white-space: nowrap;
}

.nav-link {
	padding: 11px 16px;
	border: 1.5px solid var(--rim-2);
	color: var(--paper);
}

.nav-start {
	padding: 12px 18px;
	background: var(--sun);
	color: var(--ink);
}

.nav-start:hover {
	background: var(--sun-hover);
	color: var(--ink);
}

.nav-start-short {
	display: none;
}

@media (max-width: 520px) {
	.site-nav {
		gap: 6px;
	}
	.nav-link {
		padding: 9px 12px;
	}
	.nav-start {
		padding: 10px 14px;
	}
	.nav-start-long {
		display: none;
	}
	.nav-start-short {
		display: inline;
	}
}

/* --- Buttons ------------------------------------------------------------------ */

.btn-sun,
.btn-line {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font: inherit;
	font-size: 16px;
	font-weight: 800;
	border-radius: 999px;
	text-decoration: none;
	cursor: pointer;
}

.btn-sun {
	padding: 17px 24px;
	background: var(--sun);
	color: var(--ink);
	border: 0;
}

.btn-sun:hover {
	background: var(--sun-hover);
	color: var(--ink);
}

.btn-sun:disabled {
	opacity: 0.6;
	cursor: wait;
}

.btn-line {
	padding: 16px 22px;
	border: 1.5px solid var(--rim-2);
	color: var(--paper);
}

.btn-line:hover {
	border-color: var(--paper);
	color: var(--paper);
}

.magnetic {
	transition: translate 400ms var(--ease);
}

/* --- The calm screen ---------------------------------------------------------- */

.calm {
	max-width: 880px;
	min-height: 100svh;
	margin: 0 auto;
	padding: clamp(84px, 12vh, 120px) var(--gutter) clamp(28px, 6vh, 56px);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: clamp(14px, 2.4vh, 22px);
	text-align: center;
}

.calm-eye {
	position: relative;
	width: min(40svh, 64vw);
	aspect-ratio: 1;
	margin-bottom: clamp(4px, 1.6vh, 16px);
}

.calm-title {
	margin: 0;
	font-weight: 800;
	font-size: clamp(34px, 4.6vw, 64px);
	line-height: 1.06;
	letter-spacing: -0.05em;
	text-wrap: balance;
}

.calm-line {
	margin: 0;
	max-width: 560px;
	font-size: clamp(16px, 1.4vw, 19px);
	line-height: 1.55;
	color: var(--soft);
	text-wrap: pretty;
}

.calm-actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	margin-top: 6px;
}

.calm-opening {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	color: var(--sun);
}

/* The words: until the script decides, they wait hidden and show by
   themselves after a moment, so the page still reads if the script never
   runs. "intro-wait" holds them while the eye opens, then "intro-fade"
   brings them in; on a later visit "intro-done" alone shows them at once. */
[data-intro] {
	opacity: 0;
	animation: intro-fallback 0.6s ease 1.5s forwards;
}

@keyframes intro-fallback {
	to {
		opacity: 1;
	}
}

html.intro-wait [data-intro] {
	animation: none;
}

html.intro-done [data-intro] {
	opacity: 1;
	animation: none;
}

@media (prefers-reduced-motion: no-preference) {
	html.intro-wait [data-intro] {
		transform: translateY(14px);
	}
	html.intro-fade [data-intro] {
		transition:
			opacity 0.7s var(--ease),
			transform 0.9s var(--ease);
	}
	html.intro-fade .calm-line {
		transition-delay: 0.1s;
	}
	html.intro-fade .calm-actions {
		transition-delay: 0.2s;
	}
	html.intro-fade .calm-opening {
		transition-delay: 0.3s;
	}
}

/* --- Footer ----------------------------------------------------------------- */

.site-footer {
	max-width: 1200px;
	margin: 0 auto;
	padding: 28px var(--gutter) 40px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px 28px;
	flex-wrap: wrap;
	font-size: 14px;
}

.footer-brand {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}

.footer-tagline {
	font-weight: 700;
	color: var(--soft);
}

.footer-links {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
	align-items: center;
	font-weight: 700;
}

.footer-links a {
	text-decoration: none;
}

.footer-rights {
	flex-basis: 100%;
	margin: 0;
	padding-top: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--soft);
}

/* --- Contact page ---------------------------------------------------------- */

.contact {
	max-width: 1200px;
	margin: 0 auto;
	padding: clamp(120px, 18vh, 180px) var(--gutter) clamp(56px, 9vh, 104px);
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
	gap: clamp(32px, 6vw, 88px);
	align-items: start;
}

.contact-words {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.contact-words h1 {
	margin: 0;
	font-weight: 800;
	font-size: clamp(44px, 7vw, 96px);
	line-height: 0.98;
	letter-spacing: -0.06em;
	text-wrap: balance;
}

.contact-words p {
	margin: 0;
	max-width: 480px;
	font-size: clamp(17px, 1.6vw, 21px);
	line-height: 1.5;
	color: var(--soft);
}

.contact-card {
	margin: 0;
	padding: clamp(20px, 3vw, 32px);
	border-radius: 28px;
	background: var(--paper);
	color: var(--ink);
}

.contact-card.notice {
	font-size: 17px;
	font-weight: 700;
	line-height: 1.5;
}

.contact-form,
.contact-sent {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.field > span {
	font-size: 14px;
	font-weight: 800;
}

.field input,
.field select,
.field textarea {
	width: 100%;
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	padding: 14px 16px;
	border-radius: 14px;
	border: 1.5px solid #8f887d;
	background: #fff;
	color: var(--ink);
}

.field textarea {
	resize: vertical;
	min-height: 132px;
}

.form-error {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	color: var(--clay-deep);
}

.contact-form .btn-sun {
	align-self: flex-start;
}

.contact-sent h2 {
	margin: 0;
	font-weight: 800;
	font-size: 30px;
	letter-spacing: -0.04em;
}

.contact-sent p {
	margin: 0;
	font-size: 17px;
	line-height: 1.5;
	color: var(--ink-2);
}

.contact-sent .btn-line {
	align-self: flex-start;
	color: var(--ink);
	border-color: #dcd3c5;
}

/* The marigold curtain between Odjaa's own pages: the page being left wipes
   up off a marigold screen, and the next one rises into place. Browsers
   without page transitions change page as usual, and nothing moves for
   someone who asked for less motion. */
@media (prefers-reduced-motion: no-preference) {
	@view-transition {
		navigation: auto;
	}
}

::view-transition {
	background: var(--sun);
}

::view-transition-old(root) {
	animation: curtain-leave 0.42s cubic-bezier(0.76, 0, 0.24, 1) both;
}

::view-transition-new(root) {
	animation: curtain-arrive 0.55s cubic-bezier(0.76, 0, 0.24, 1) 0.12s both;
}

@keyframes curtain-leave {
	to {
		clip-path: inset(0 0 100% 0);
	}
}

@keyframes curtain-arrive {
	from {
		clip-path: inset(100% 0 0 0);
	}
}
