/*
Theme Name: Magsika Studio
Theme URI: https://magsikastudio.com
Author: Magsika Studio
Description: Tema custom untuk Magsika Studio — studio 3D dengan toko produk digital dan jasa komisi.
Version: 0.4.0
Text Domain: magsika
*/

/* ===== Fonts (self-hosted) ===== */
@font-face { font-family: 'Rajdhani'; src: url('assets/fonts/rajdhani-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Rajdhani'; src: url('assets/fonts/rajdhani-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Rajdhani'; src: url('assets/fonts/rajdhani-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Work Sans'; src: url('assets/fonts/work-sans-var.woff2') format('woff2'); font-weight: 300 700; font-style: normal; font-display: swap; }

/* ===== Tokens =====
   Precision direction: near-black base, one disciplined violet accent
   spent boldly (not diluted into pastels), sharp angular cuts instead
   of rounded/blob shapes, condensed technical display type. Think
   tactical HUD restraint, not playful maximalism. */
:root {
	--ink: #0a090d;
	--panel: #131118;
	--panel-2: #1a1720;
	--edge: #2c2833;
	--text: #f2f0f5;
	--muted: #a49dae;
	--faint: #6b6475;

	--violet: #31004a;
	--violet-vivid: #a238ff;
	--on-violet: #f2f0f5;

	--font-display: 'Rajdhani', ui-sans-serif, system-ui, sans-serif;
	--font-body: 'Work Sans', system-ui, -apple-system, sans-serif;

	--wrap: 1200px;
	--cut: 26px; /* angular corner-cut size */
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--ink);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 {
	font-family: var(--font-display);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.01em;
	text-wrap: balance;
	margin: 0;
	line-height: 1;
}
p { margin: 0 0 1em; color: var(--muted); }
em { font-style: normal; color: var(--violet-vivid); }
:focus-visible { outline: 2px solid var(--violet-vivid); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

.label {
	display: block;
	font-family: var(--font-display);
	font-size: 13.5px;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--violet-vivid);
	margin: 0 0 16px;
}
/* Kicker: small diamond mark + short line, sits above .label —
   the icon+underline motif from the Riot/Valorant reference. */
.kicker { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.kicker__icon {
	width: 20px; height: 20px;
	border: 1.5px solid var(--violet-vivid);
	clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.kicker__line { width: 34px; height: 2px; background: var(--violet-vivid); }

/* Ghost text: oversized outline-only word sitting directly behind the
   section heading (not mid-section, where it gets buried under content
   below) — same device as the huge stroked "PLACE" behind Riot's "PETA". */
.section--ghost { position: relative; overflow: hidden; }
.section--ghost > .wrap { position: relative; z-index: 1; }
.ghost-text {
	position: absolute;
	top: -34px;
	left: 20px;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(170px, 23vw, 360px);
	line-height: 1;
	color: transparent;
	-webkit-text-stroke: 1px color-mix(in srgb, var(--edge) 42%, transparent);
	white-space: nowrap;
	pointer-events: none;
	user-select: none;
	z-index: 0;
}

/* ===== Buttons ===== */
.btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 16px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 15px 30px;
	border: 1px solid transparent;
	clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn--fill { background: var(--violet-vivid); color: var(--ink); }
.btn--fill:hover { background: var(--text); }
.btn--line { border-color: var(--text); color: var(--text); }
.btn--line:hover { border-color: var(--violet-vivid); color: var(--violet-vivid); }

@media (prefers-reduced-motion: reduce) {
	.btn, .site-header, .marquee__track, .scanlines { transition: none !important; animation: none !important; }
	html { scroll-behavior: auto; }
}

/* ===== Header ===== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: color-mix(in srgb, var(--ink) 88%, transparent);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--edge);
}
/* WordPress's admin bar is fixed at the real viewport top when logged in
   (32px desktop / 46px mobile) and sits above everything — without this,
   it slices through our sticky header as soon as the page scrolls. */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
	body.admin-bar .site-header { top: 46px; }
}
.site-header__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 28px; }
.site-logo img { height: 24px; width: auto; filter: brightness(0) invert(1); }
.site-nav__list {
	display: flex; align-items: center; gap: 30px; flex-wrap: wrap;
	font-family: var(--font-display); font-weight: 600; font-size: 15px;
	letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted);
}
.site-nav__list a:hover { color: var(--violet-vivid); }

/* ===== Scatter marks =====
   Reusable field of small squares/dashes/paired-dots at fixed scattered
   coordinates — the tactical HUD texture from the Riot reference. Reused
   across sections rather than being hero-only. */
.scatter { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.scatter span { position: absolute; background: var(--violet-vivid); opacity: 0.8; }
.scatter span:nth-child(1)  { top: 9%;  left: 5%;  width: 5px; height: 5px; }
.scatter span:nth-child(2)  { top: 16%; left: 33%; width: 3px; height: 3px; background: var(--edge); }
.scatter span:nth-child(3)  { top: 20%; left: 90%; width: 4px; height: 4px; }
.scatter span:nth-child(4)  { top: 38%; left: 3%;  width: 3px; height: 16px; background: var(--edge); }
.scatter span:nth-child(5)  { top: 62%; left: 94%; width: 4px; height: 4px; box-shadow: 0 9px 0 var(--violet-vivid); }
.scatter span:nth-child(6)  { top: 78%; left: 9%;  width: 5px; height: 5px; background: var(--edge); }
.scatter span:nth-child(7)  { top: 86%; left: 58%; width: 3px; height: 3px; }
.scatter span:nth-child(8)  { top: 30%; left: 72%; width: 3px; height: 3px; box-shadow: 0 8px 0 var(--edge); }
.scatter span:nth-child(9)  { top: 52%; left: 48%; width: 3px; height: 3px; background: var(--edge); }
.scatter span:nth-child(10) { top: 6%;  left: 56%; width: 3px; height: 14px; background: var(--edge); }
.scatter span:nth-child(11) { top: 68%; left: 24%; width: 4px; height: 4px; }
.scatter span:nth-child(12) { top: 44%; left: 84%; width: 3px; height: 3px; background: var(--edge); }

/* ===== Hero ===== */
.hero {
	position: relative;
	overflow: hidden;
	min-height: calc(100vh - 65px);
	display: flex;
	align-items: center;
	padding: 90px 0;
	border-bottom: 1px solid var(--edge);
	background:
		linear-gradient(180deg, color-mix(in srgb, var(--violet) 30%, transparent), transparent 55%),
		var(--ink);
}
.hero::before {
	content: '';
	position: absolute; inset: 0;
	background-image: repeating-linear-gradient(115deg, color-mix(in srgb, var(--text) 4%, transparent) 0 1px, transparent 1px 64px);
	pointer-events: none;
}
.hero__corner {
	position: absolute; top: 0; right: 0;
	width: 46%; height: 100%;
	background: color-mix(in srgb, var(--violet) 55%, transparent);
	clip-path: polygon(38% 0, 100% 0, 100% 100%, 8% 100%);
	opacity: 0.55;
}
.hero__inner { position: relative; z-index: 1; max-width: 760px; }
.hero__title { font-size: clamp(42px, 6.4vw, 80px); letter-spacing: 0; margin-bottom: 26px; }
.hero__lede {
	font-family: var(--font-body); text-transform: none; letter-spacing: normal;
	font-size: 18px; max-width: 54ch; color: var(--muted); margin-bottom: 38px;
}
.hero__actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

/* ===== Marquee ===== */
.marquee {
	background: var(--violet-vivid);
	color: var(--ink);
	overflow: hidden;
	border-bottom: 1px solid var(--edge);
}
.marquee__track { display: flex; width: max-content; animation: marquee 24s linear infinite; padding: 10px 0; }
.marquee__track span {
	font-family: var(--font-display); font-weight: 700; font-size: 14.5px;
	letter-spacing: 0.1em; text-transform: uppercase; padding: 0 18px; white-space: nowrap;
}
.marquee__track span::after { content: '/'; margin-left: 18px; opacity: 0.5; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== Sections ===== */
.section { position: relative; overflow: hidden; padding: 104px 0; border-bottom: 1px solid var(--edge); }
.section > .wrap { position: relative; z-index: 1; }
.section__head { max-width: 720px; margin-bottom: 52px; }
.section__head h2 { font-size: clamp(32px, 4.4vw, 52px); }
.lede { font-size: 18px; max-width: 66ch; text-transform: none; }

/* ===== Portfolio grid ===== */
.grid-portfolio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--edge); border: 1px solid var(--edge); }
.card-work {
	position: relative;
	display: block;
	background: var(--panel);
	transition: background 0.15s ease;
}
.card-work:hover { background: var(--panel-2); }
.card-work::before, .card-work::after {
	content: '';
	position: absolute;
	width: 16px; height: 16px;
	border: 0 solid var(--violet-vivid);
	opacity: 0;
	transition: opacity 0.15s ease;
}
.card-work::before { top: 10px; left: 10px; border-width: 2px 0 0 2px; }
.card-work::after { bottom: 10px; right: 10px; border-width: 0 2px 2px 0; }
.card-work:hover::before, .card-work:hover::after { opacity: 1; }
/* Overlap badge: a diamond mark punching through the card's top edge —
   the "icon bleeding past the frame" idea, in our monochrome style. */
.card-work__badge {
	position: absolute;
	top: -18px; right: 20px;
	width: 36px; height: 36px;
	background: var(--ink);
	border: 1.5px solid var(--violet-vivid);
	clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
	z-index: 2;
}
.card-work__badge::after {
	content: '';
	position: absolute; inset: 8px;
	background: var(--violet-vivid);
	clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.card-work__thumb { aspect-ratio: 4 / 3; background: var(--panel-2); overflow: hidden; }
.card-work__thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-work__body { padding: 20px 22px 24px; }
.card-work h3 { font-size: 18px; margin-bottom: 6px; text-transform: none; }
.card-work--empty .card-work__thumb { display: flex; align-items: center; justify-content: center; }
.card-work--empty .card-work__thumb span {
	font-family: var(--font-display); font-weight: 600; font-size: 12.5px;
	letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint);
	border: 1px solid var(--edge); padding: 6px 12px;
}
.card-work--empty p { font-size: 13.5px; margin: 0; text-transform: none; }

/* ===== Split section ===== */
.grid-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--edge); }
.panel-split { position: relative; background: var(--panel); padding: 52px 44px; }
.panel-split .label, .panel-split h3, .panel-split p, .panel-split .btn { position: relative; z-index: 1; }
.panel-split--commission { background: var(--violet); }
.panel-split .label { color: var(--violet-vivid); }
.panel-split--commission .label { color: var(--on-violet); opacity: 0.65; }
.panel-split h3 { font-size: 30px; margin-bottom: 16px; text-transform: none; }
.panel-split p { margin-bottom: 24px; text-transform: none; }
.panel-split--commission p { color: color-mix(in srgb, var(--on-violet) 80%, transparent); }

/* ===== Client logo strip ===== */
.section--clients { padding: 60px 0; }
.section--clients .section__head { margin-bottom: 36px; }
.section--clients .section__head h2 { font-size: clamp(22px, 2.4vw, 30px); }
.logo-strip { display: flex; flex-wrap: wrap; gap: 1px; background: var(--edge); border: 1px solid var(--edge); }
.logo-slot {
	flex: 1 1 160px;
	min-height: 84px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--panel);
	padding: 16px;
}
.logo-slot img { max-height: 32px; width: auto; filter: grayscale(1) brightness(0) invert(1); opacity: 0.75; }
.logo-slot span {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--faint);
	border: 1px dashed var(--edge);
	padding: 8px 16px;
}

/* ===== About ===== */
.section--about__inner { max-width: 800px; }
.section--about h2 { font-size: clamp(28px, 3.8vw, 44px); }

/* ===== Page header (inner pages) ===== */
.page-hero {
	position: relative;
	overflow: hidden;
	padding: 100px 0 64px;
	border-bottom: 1px solid var(--edge);
	background: linear-gradient(180deg, color-mix(in srgb, var(--violet) 24%, transparent), transparent 60%), var(--ink);
}
.page-hero__inner { position: relative; z-index: 1; max-width: 720px; }
.page-hero h1 { font-size: clamp(36px, 5vw, 60px); margin-bottom: 18px; }
.page-hero p { font-size: 17.5px; max-width: 56ch; text-transform: none; }

/* Thank-you state: full, unmistakable confirmation — not a small banner.
   Fills the remaining viewport and centers, same treatment as the homepage
   hero, so it reads as a proper full-frame moment, not a half-scrolled banner. */
.page-hero--sent {
	min-height: calc(100vh - 65px);
	display: flex;
	align-items: center;
	padding: 64px 0;
	text-align: center;
}
.page-hero--sent .page-hero__inner { max-width: 820px; margin: 0 auto; }
.page-hero--sent .label { text-align: center; }
.page-hero--sent p { margin-left: auto; margin-right: auto; }
.page-hero--sent .hero__actions { justify-content: center; margin-top: 8px; }
.sent-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px; height: 64px;
	margin-bottom: 24px;
	border: 2px solid var(--violet-vivid);
	clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
	position: relative;
}
.sent-mark::after {
	content: '';
	width: 22px; height: 12px;
	border-left: 3px solid var(--violet-vivid);
	border-bottom: 3px solid var(--violet-vivid);
	transform: rotate(-45deg) translate(1px, -2px);
}
@media (max-width: 700px) {
	.page-hero--sent { min-height: auto; padding: 90px 0 70px; }
	.page-hero--sent .hero__actions { flex-direction: column; align-items: stretch; }
}

/* ===== Forms ===== */
.form-notice {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 18px 22px;
	border: 1px solid var(--edge);
	margin-bottom: 40px;
	font-family: var(--font-display);
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	font-size: 14.5px;
}
.form-notice--ok { border-color: var(--violet-vivid); color: var(--violet-vivid); }
.form-notice--error { border-color: #ff4d4d; color: #ff4d4d; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 24px; max-width: 880px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--wide { grid-column: 1 / -1; }
.field label {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
}
.field input,
.field select,
.field textarea {
	background: var(--panel);
	border: 1px solid var(--edge);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 15.5px;
	padding: 13px 16px;
	border-radius: 0;
	transition: border-color 0.15s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
	outline: none;
	border-color: var(--violet-vivid);
}
.field select {
	appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, var(--faint) 50%), linear-gradient(135deg, var(--faint) 50%, transparent 50%);
	background-position: calc(100% - 20px) center, calc(100% - 15px) center;
	background-size: 5px 5px, 5px 5px;
	background-repeat: no-repeat;
}
.field--honeypot { position: absolute; left: -9999px; top: -9999px; }
.form-submit { grid-column: 1 / -1; margin-top: 8px; }
.form-submit .btn { border: none; }
.form-note { font-size: 13.5px; color: var(--faint); text-transform: none; margin-top: 14px; }

@media (max-width: 700px) {
	.form-grid { grid-template-columns: 1fr; }
}

/* ===== Footer ===== */
.site-footer { background: var(--panel); border-top: 1px solid var(--edge); padding: 64px 0 0; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 48px; }
.site-footer__logo { filter: brightness(0) invert(1); margin-bottom: 16px; }
.site-footer__brand p { max-width: 34ch; font-size: 14.5px; text-transform: none; }
.site-footer__col .label { margin-bottom: 14px; }
.site-footer__list { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; color: var(--muted); }
.site-footer__list a:hover { color: var(--violet-vivid); }
.site-footer__col p { font-size: 14.5px; margin-bottom: 8px; text-transform: none; }
.site-footer__note { color: var(--faint); font-size: 13px; text-transform: none; }
.site-footer__bottom { border-top: 1px solid var(--edge); padding: 20px 28px; font-family: var(--font-display); font-size: 12.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--faint); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
	.site-nav { display: none; }
	.grid-portfolio { grid-template-columns: repeat(2, 1fr); }
	.grid-split { grid-template-columns: 1fr; }
	.site-footer__grid { grid-template-columns: 1fr; }
	.hero { padding: 90px 0 60px; }
	.hero__corner { width: 70%; opacity: 0.35; }
}
@media (max-width: 560px) {
	.grid-portfolio { grid-template-columns: 1fr; }
}
