/*
Theme Name: Sokatoa Modern
Theme URI: https://sokatoa.com/
Author: Sokatoa
Description: A modern, domain-aware portfolio theme for Sokatoa and the private Sculptoa preview.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: sokatoa-modern
*/

:root {
	--ink: #f6f9fc;
	--muted: #9babbc;
	--faint: #6c7d90;
	--night: #050a10;
	--night-2: #08131d;
	--surface: rgba(15, 29, 42, 0.78);
	--surface-solid: #0e1b28;
	--line: rgba(255, 255, 255, 0.1);
	--line-strong: rgba(255, 255, 255, 0.18);
	--blue: #2ab9ff;
	--blue-2: #5676ff;
	--violet: #a77bff;
	--mint: #78f0cf;
	--orange: #ffb46a;
	--shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
	--radius-lg: 36px;
	--radius-md: 24px;
	--radius-sm: 14px;
	--container: 1240px;
}

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

html {
	scroll-behavior: smooth;
	background: var(--night);
}

body {
	margin: 0;
	color: var(--ink);
	background:
		radial-gradient(circle at 84% 0%, rgba(63, 94, 251, 0.15), transparent 29rem),
		radial-gradient(circle at 8% 20%, rgba(42, 185, 255, 0.08), transparent 32rem),
		var(--night);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

body.admin-bar .site-header {
	top: 32px;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

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

button,
input,
textarea {
	font: inherit;
}

:focus-visible {
	outline: 3px solid var(--blue);
	outline-offset: 4px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	position: fixed;
	z-index: 100000;
	top: 12px;
	left: 12px;
	width: auto;
	height: auto;
	padding: 12px 16px;
	clip: auto;
	color: var(--night);
	background: var(--ink);
	border-radius: 8px;
}

.site-shell {
	width: min(calc(100% - 40px), var(--container));
	margin-inline: auto;
}

.site-header {
	position: sticky;
	z-index: 50;
	top: 0;
	padding: 16px 0;
	background: rgba(5, 10, 16, 0.72);
	border-bottom: 1px solid transparent;
	backdrop-filter: blur(18px);
	transition: border-color 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
	background: rgba(5, 10, 16, 0.9);
	border-bottom-color: var(--line);
}

.header-inner,
.brand,
.primary-nav ul,
.footer-row,
.hero-actions,
.meta-row {
	display: flex;
	align-items: center;
}

.header-inner {
	justify-content: space-between;
	min-height: 54px;
	gap: 28px;
}

.brand {
	gap: 12px;
	text-decoration: none;
}

.brand img {
	width: 38px;
	height: 38px;
	object-fit: contain;
	filter: drop-shadow(0 8px 20px rgba(42, 185, 255, 0.24));
}

.brand-copy {
	display: grid;
	line-height: 1.05;
}

.brand-name {
	font-weight: 820;
	letter-spacing: -0.03em;
}

.brand-context {
	margin-top: 4px;
	color: var(--muted);
	font-size: 0.7rem;
	font-weight: 720;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.primary-nav ul {
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-nav a {
	display: block;
	padding: 10px 13px;
	color: var(--muted);
	border-radius: 999px;
	font-size: 0.9rem;
	font-weight: 720;
	text-decoration: none;
	transition: color 160ms ease, background 160ms ease;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a {
	color: var(--ink);
	background: rgba(255, 255, 255, 0.07);
}

.nav-preview {
	color: var(--mint) !important;
	border: 1px solid rgba(120, 240, 207, 0.24);
}

.menu-toggle {
	display: none;
	width: 44px;
	height: 44px;
	padding: 0;
	color: var(--ink);
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 50%;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
	display: block;
	width: 18px;
	height: 2px;
	margin: 4px auto;
	content: "";
	background: currentColor;
	border-radius: 4px;
}

.site-main {
	min-height: 70vh;
	overflow: hidden;
}

.hero {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
	gap: clamp(38px, 6vw, 86px);
	align-items: center;
	min-height: min(820px, calc(100vh - 88px));
	padding: 96px 0 86px;
}

.hero::before {
	position: absolute;
	z-index: -1;
	top: 16%;
	left: -14%;
	width: 420px;
	height: 420px;
	content: "";
	background: rgba(42, 185, 255, 0.08);
	border-radius: 50%;
	filter: blur(80px);
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 26px;
	color: var(--blue);
	font-size: 0.76rem;
	font-weight: 820;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.eyebrow::before {
	width: 34px;
	height: 1px;
	content: "";
	background: currentColor;
}

.hero h1,
.page-hero h1,
.section-heading h2,
.sculptoa-copy h1 {
	margin: 0;
	font-weight: 820;
	letter-spacing: -0.065em;
	line-height: 0.96;
}

.hero h1 {
	max-width: 780px;
	font-size: clamp(4rem, 8vw, 8.2rem);
}

.text-gradient {
	color: transparent;
	background: linear-gradient(105deg, var(--blue) 0%, #a4dfff 46%, var(--violet) 100%);
	-webkit-background-clip: text;
	background-clip: text;
}

.hero-copy {
	max-width: 660px;
	margin: 32px 0 0;
	color: var(--muted);
	font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.hero-actions {
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 38px;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 0 22px;
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: 0.92rem;
	font-weight: 800;
	text-decoration: none;
	transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
	color: var(--ink);
	border-color: var(--line-strong);
	transform: translateY(-2px);
}

.button-primary {
	color: #041019;
	background: linear-gradient(120deg, #8be7ff, var(--blue));
	border-color: transparent;
	box-shadow: 0 18px 55px rgba(42, 185, 255, 0.2);
}

.button-ghost {
	background: rgba(255, 255, 255, 0.035);
}

.button-small {
	min-height: 42px;
	padding-inline: 17px;
	font-size: 0.84rem;
}

.hero-visual {
	position: relative;
}

.hero-card {
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 5;
	background: var(--surface-solid);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
	transform: rotate(1.2deg);
}

.hero-card::after {
	position: absolute;
	inset: 0;
	content: "";
	background: linear-gradient(180deg, transparent 45%, rgba(3, 8, 13, 0.88) 100%);
}

.hero-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero-card-copy {
	position: absolute;
	z-index: 2;
	right: 30px;
	bottom: 28px;
	left: 30px;
}

.hero-card-copy span {
	color: var(--blue);
	font-size: 0.72rem;
	font-weight: 820;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.hero-card-copy strong {
	display: block;
	margin-top: 7px;
	font-size: clamp(1.6rem, 3vw, 2.5rem);
	letter-spacing: -0.04em;
}

.floating-chip {
	position: absolute;
	z-index: 3;
	top: 12%;
	left: -28px;
	padding: 12px 16px;
	color: var(--ink);
	background: rgba(13, 29, 43, 0.9);
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
	backdrop-filter: blur(12px);
	font-size: 0.78rem;
	font-weight: 760;
}

.section {
	padding: 105px 0;
}

.section-tight {
	padding: 78px 0;
}

.section-line {
	border-top: 1px solid var(--line);
}

.section-heading {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.6fr);
	gap: 40px;
	align-items: end;
	margin-bottom: 52px;
}

.section-heading h2 {
	font-size: clamp(2.9rem, 6vw, 5.9rem);
}

.section-heading p {
	margin: 0;
	color: var(--muted);
}

.bento-grid {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: 18px;
}

.project-card,
.feature-card,
.info-card,
.doc-card {
	position: relative;
	overflow: hidden;
	background: linear-gradient(145deg, rgba(18, 35, 50, 0.9), rgba(9, 20, 30, 0.86));
	border: 1px solid var(--line);
	box-shadow: inset 0 1px rgba(255, 255, 255, 0.03);
	transition: transform 220ms ease, border-color 220ms ease;
}

.project-card:hover,
.feature-card:hover,
.info-card:hover,
.doc-card:hover {
	border-color: rgba(42, 185, 255, 0.28);
	transform: translateY(-4px);
}

.project-card {
	grid-column: span 7;
	min-height: 530px;
	border-radius: var(--radius-lg);
}

.project-card-secondary {
	grid-column: span 5;
}

.project-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.project-card-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 34px;
	background: linear-gradient(180deg, transparent 30%, rgba(4, 10, 16, 0.96) 100%);
}

.project-card-overlay h3 {
	margin: 6px 0 10px;
	font-size: clamp(2rem, 4vw, 3.3rem);
	letter-spacing: -0.05em;
	line-height: 1;
}

.project-card-overlay p {
	max-width: 520px;
	margin: 0;
	color: #c0cbd6;
}

.meta-row {
	flex-wrap: wrap;
	gap: 8px;
}

.pill {
	display: inline-flex;
	padding: 7px 11px;
	color: #c9d5e1;
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 999px;
	font-size: 0.7rem;
	font-weight: 780;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.private-pill {
	color: var(--mint);
	background: rgba(120, 240, 207, 0.08);
	border-color: rgba(120, 240, 207, 0.19);
}

.studio-grid,
.feature-grid,
.docs-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.info-card,
.feature-card,
.doc-card {
	padding: 30px;
	border-radius: var(--radius-md);
}

.info-card strong,
.feature-card h3,
.doc-card h3 {
	display: block;
	margin: 0 0 12px;
	font-size: 1.2rem;
	letter-spacing: -0.025em;
}

.info-card p,
.feature-card p,
.doc-card p {
	margin: 0;
	color: var(--muted);
	font-size: 0.96rem;
}

.card-number {
	display: block;
	margin-bottom: 52px;
	color: var(--blue);
	font-size: 0.72rem;
	font-weight: 840;
	letter-spacing: 0.15em;
}

.page-hero {
	padding: 120px 0 70px;
}

.page-hero h1 {
	max-width: 920px;
	font-size: clamp(3.5rem, 8vw, 7.7rem);
}

.page-hero p {
	max-width: 720px;
	margin: 28px 0 0;
	color: var(--muted);
	font-size: 1.2rem;
}

.content-wrap {
	width: min(calc(100% - 40px), 820px);
	margin-inline: auto;
	padding: 42px 0 110px;
}

.entry-content > * + * {
	margin-top: 1.4em;
}

.entry-content h2,
.entry-content h3 {
	letter-spacing: -0.04em;
	line-height: 1.08;
}

.entry-content h2 {
	margin-top: 2em;
	font-size: clamp(2rem, 4vw, 3.2rem);
}

.entry-content h3 {
	margin-top: 1.7em;
	font-size: 1.5rem;
}

.entry-content p,
.entry-content li {
	color: #b4c1ce;
}

.entry-content img {
	border-radius: var(--radius-md);
}

.game-hero {
	overflow: hidden;
	background: #0b1722;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
}

.game-hero img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.game-story {
	display: grid;
	grid-template-columns: 0.65fr 1.35fr;
	gap: 50px;
	padding: 75px 0;
}

.game-story h2 {
	margin: 0;
	font-size: clamp(2.5rem, 5vw, 5rem);
	letter-spacing: -0.06em;
	line-height: 0.98;
}

.game-story p {
	margin: 0;
	color: var(--muted);
	font-size: 1.06rem;
}

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: 16px;
}

.gallery-grid figure {
	grid-column: span 4;
	margin: 0;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
}

.gallery-grid figure:nth-child(-n + 2) {
	grid-column: span 6;
}

.gallery-grid img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 300ms ease;
}

.gallery-grid figure:hover img {
	transform: scale(1.025);
}

.sculptoa-hero {
	position: relative;
	min-height: calc(100vh - 86px);
	background: #030711;
}

.sculptoa-hero::after {
	position: absolute;
	inset: 0;
	content: "";
	pointer-events: none;
	background: linear-gradient(90deg, rgba(3, 7, 17, 0.98) 0%, rgba(3, 7, 17, 0.86) 38%, rgba(3, 7, 17, 0.15) 72%);
}

.sculptoa-hero > img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sculptoa-copy {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: calc(100vh - 86px);
	max-width: 650px;
	padding: 100px 0;
}

.sculptoa-copy h1 {
	font-size: clamp(4.6rem, 10vw, 9.5rem);
}

.sculptoa-copy p {
	max-width: 580px;
	margin: 28px 0 0;
	color: #acbbca;
	font-size: 1.15rem;
}

.private-banner {
	padding: 11px 0;
	color: #b8ffeb;
	background: rgba(120, 240, 207, 0.08);
	border-bottom: 1px solid rgba(120, 240, 207, 0.16);
	text-align: center;
	font-size: 0.78rem;
	font-weight: 760;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.docs-layout {
	display: grid;
	grid-template-columns: 250px minmax(0, 1fr);
	gap: 70px;
	padding: 70px 0 120px;
}

.docs-nav {
	position: sticky;
	top: 110px;
	align-self: start;
}

.docs-nav strong {
	display: block;
	margin-bottom: 14px;
	color: var(--ink);
}

.docs-nav a {
	display: block;
	padding: 7px 0;
	color: var(--muted);
	font-size: 0.9rem;
	text-decoration: none;
}

.docs-nav a:hover {
	color: var(--blue);
}

.docs-content {
	max-width: 860px;
}

.docs-content section {
	padding: 34px 0 54px;
	border-bottom: 1px solid var(--line);
}

.docs-content h2 {
	margin: 0 0 18px;
	font-size: clamp(2rem, 4vw, 3.2rem);
	letter-spacing: -0.045em;
	line-height: 1.05;
}

.docs-content h3 {
	margin: 30px 0 10px;
	font-size: 1.25rem;
}

.docs-content p,
.docs-content li {
	color: var(--muted);
}

.docs-content code {
	padding: 0.15em 0.4em;
	color: #c9f2ff;
	background: rgba(42, 185, 255, 0.08);
	border: 1px solid rgba(42, 185, 255, 0.12);
	border-radius: 6px;
}

.private-gate {
	display: grid;
	place-items: center;
	min-height: calc(100vh - 86px);
	padding: 70px 20px;
	text-align: center;
}

.private-gate-inner {
	max-width: 650px;
}

.private-gate-mark {
	width: 88px;
	height: 88px;
	margin: 0 auto 28px;
	border: 1px solid var(--line-strong);
	border-radius: 28px;
	background:
		radial-gradient(circle at 35% 35%, rgba(42, 185, 255, 0.8), transparent 22%),
		linear-gradient(140deg, rgba(86, 118, 255, 0.35), rgba(167, 123, 255, 0.1));
	box-shadow: 0 25px 70px rgba(42, 185, 255, 0.16);
}

.private-gate h1 {
	margin: 0;
	font-size: clamp(3rem, 8vw, 6.5rem);
	letter-spacing: -0.065em;
	line-height: 0.95;
}

.private-gate p {
	margin: 24px auto 0;
	color: var(--muted);
}

.site-footer {
	padding: 36px 0 44px;
	border-top: 1px solid var(--line);
}

.footer-row {
	justify-content: space-between;
	gap: 24px;
	color: var(--muted);
	font-size: 0.88rem;
}

.footer-links {
	display: flex;
	gap: 18px;
}

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

@media (max-width: 980px) {
	.hero {
		grid-template-columns: 1fr;
		min-height: auto;
		padding-top: 76px;
	}

	.hero-copy {
		max-width: 760px;
	}

	.hero-visual {
		max-width: 720px;
	}

	.hero-card {
		aspect-ratio: 16 / 10;
	}

	.project-card,
	.project-card-secondary {
		grid-column: span 12;
		min-height: 500px;
	}

	.section-heading {
		grid-template-columns: 1fr;
	}

	.studio-grid,
	.feature-grid,
	.docs-grid {
		grid-template-columns: 1fr 1fr;
	}

	.game-story,
	.docs-layout {
		grid-template-columns: 1fr;
	}

	.docs-nav {
		position: static;
		display: flex;
		flex-wrap: wrap;
		gap: 8px 16px;
	}

	.docs-nav strong {
		width: 100%;
	}

	.docs-nav a {
		padding: 4px 0;
	}
}

@media (max-width: 760px) {
	body.admin-bar .site-header {
		top: 46px;
	}

	.site-shell {
		width: min(calc(100% - 28px), var(--container));
	}

	.menu-toggle {
		display: block;
	}

	.primary-nav {
		position: absolute;
		top: 76px;
		right: 14px;
		left: 14px;
		display: none;
		padding: 12px;
		background: rgba(8, 19, 29, 0.98);
		border: 1px solid var(--line);
		border-radius: 18px;
		box-shadow: var(--shadow);
	}

	.primary-nav.is-open {
		display: block;
	}

	.primary-nav ul {
		display: grid;
	}

	.primary-nav a {
		padding: 13px 15px;
	}

	.hero {
		padding: 62px 0 68px;
	}

	.hero h1 {
		font-size: clamp(3.7rem, 19vw, 6rem);
	}

	.hero-card {
		aspect-ratio: 4 / 5;
	}

	.floating-chip {
		top: -16px;
		left: 16px;
	}

	.section,
	.section-tight {
		padding: 72px 0;
	}

	.project-card,
	.project-card-secondary {
		min-height: 430px;
	}

	.studio-grid,
	.feature-grid,
	.docs-grid {
		grid-template-columns: 1fr;
	}

	.gallery-grid figure,
	.gallery-grid figure:nth-child(-n + 2) {
		grid-column: span 12;
	}

	.sculptoa-hero::after {
		background: linear-gradient(180deg, rgba(3, 7, 17, 0.45), rgba(3, 7, 17, 0.98) 68%);
	}

	.sculptoa-copy {
		justify-content: flex-end;
	}

	.sculptoa-copy h1 {
		font-size: clamp(4rem, 22vw, 6.5rem);
	}

	.footer-row {
		align-items: flex-start;
		flex-direction: column;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
