/*
Theme Name: Sefat Portfolio
Theme URI: https://www.sefat.net/
Author: Sefatul Islam
Author URI: https://www.sefat.net/
Description: A bold, interactive one-page personal website theme for Sefatul Islam — Digital Product Leader. Aurora hero with typing roles, bento-grid about, tabbed experience, draggable certifications carousel, filterable portfolio with live preview modal, ⌘K command palette, custom cursor, dark & light modes. Fully dynamic: everything is editable from the Customizer and dashboard. No jQuery, no page builder, SEO-ready, with a one-click content importer.
Version: 2.0.0
Requires at least: 6.3
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sefat
Tags: one-column, portfolio, blog, custom-logo, custom-menu, featured-images, theme-options, threaded-comments, translation-ready, accessibility-ready, block-styles, wide-blocks
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
	--accent: #39ff88;
	--accent-2: #00b3ff;
	--grad: linear-gradient(115deg, var(--accent) 0%, color-mix(in oklab, var(--accent) 50%, var(--accent-2)) 50%, var(--accent-2) 100%);
	--accent-soft: color-mix(in oklab, var(--accent) 16%, transparent);
	--accent-ink: color-mix(in oklab, var(--accent) 85%, white);
	--on-accent: #021208;
	--glow: 0 0 24px color-mix(in oklab, var(--accent) 45%, transparent);

	--bg: #05070a;
	--bg-2: #0a0e13;
	--surface: rgba(255, 255, 255, 0.035);
	--surface-2: rgba(255, 255, 255, 0.06);
	--surface-solid: #0d1218;
	--border: rgba(255, 255, 255, 0.08);
	--border-strong: rgba(255, 255, 255, 0.16);
	--ink: #f4f5f9;
	--ink-2: #c4c8d4;
	--muted: #8a90a2;
	--shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
	--header-bg: rgba(7, 8, 12, 0.6);
	--grid-line: color-mix(in oklab, var(--accent) 7%, transparent);
	--aurora-opacity: 0.32;

	--font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-display: "Space Grotesk", "Inter", ui-sans-serif, system-ui, sans-serif;
	--font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
	--display-weight: 600;
	--display-tracking: -0.035em;

	--radius-sm: 12px;
	--radius: 22px;
	--radius-lg: 32px;
	--container: 1240px;
	--gutter: clamp(16px, 4vw, 40px);
	--section-y: clamp(72px, 8.5vw, 120px);
	--header-h: 76px;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
	--spring: cubic-bezier(0.34, 1.56, 0.64, 1);
	color-scheme: dark;
}

[data-theme="light"] {
	--accent-soft: color-mix(in oklab, var(--accent) 10%, transparent);
	--accent-ink: color-mix(in oklab, var(--accent) 85%, black);
	--bg: #f5f6fb;
	--bg-2: #eceef6;
	--surface: rgba(255, 255, 255, 0.65);
	--surface-2: rgba(255, 255, 255, 0.9);
	--surface-solid: #ffffff;
	--border: rgba(15, 18, 35, 0.08);
	--border-strong: rgba(15, 18, 35, 0.16);
	--ink: #0b0d16;
	--ink-2: #383d4f;
	--muted: #6a7084;
	--shadow: 0 30px 60px -30px rgba(30, 30, 80, 0.25);
	--header-bg: rgba(245, 246, 251, 0.7);
	--grid-line: rgba(15, 18, 35, 0.05);
	--aurora-opacity: 0.35;
	color-scheme: light;
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
	transition: background-color 0.4s ease, color 0.4s ease;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.5em;
	font-family: var(--font-display);
	font-weight: var(--display-weight);
	line-height: 1.12;
	letter-spacing: -0.02em;
	color: var(--ink);
}

p { margin: 0 0 1em; }

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

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

.skip-link:focus {
	position: fixed !important;
	top: 12px; left: 12px;
	z-index: 1000;
	width: auto; height: auto;
	clip: auto;
	padding: 10px 16px;
	background: var(--ink);
	color: var(--bg);
	border-radius: 10px;
	text-decoration: none;
}

.container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.container--narrow { max-width: calc(760px + var(--gutter) * 2); }

.icon { flex: none; }

.grad-text {
	filter: drop-shadow(0 0 22px color-mix(in oklab, var(--accent) 30%, transparent));
	background: var(--grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
}

/* Glass surfaces + cursor spotlight */
.glass {
	position: relative;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	backdrop-filter: blur(14px) saturate(140%);
}

.spot { isolation: isolate; }

.spot::before {
	content: "";
	position: absolute;
	inset: -1px;
	z-index: -1;
	border-radius: inherit;
	background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in oklab, var(--accent) 22%, transparent), transparent 45%);
	opacity: 0;
	transition: opacity 0.4s;
	pointer-events: none;
}

.spot::after {
	content: "";
	position: absolute;
	inset: -1px;
	border-radius: inherit;
	padding: 1px;
	background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), color-mix(in oklab, var(--accent-2) 75%, transparent), transparent 60%);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
	opacity: 0;
	transition: opacity 0.4s;
	pointer-events: none;
}

.spot:hover::before, .spot:hover::after { opacity: 1; }

/* ==========================================================================
   3. Buttons, pills, links
   ========================================================================== */
.btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 54px;
	padding: 0 28px;
	border: 1px solid transparent;
	border-radius: 999px;
	background: var(--ink);
	color: var(--bg);
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
	cursor: pointer;
	overflow: hidden;
	isolation: isolate;
	transition: transform 0.35s var(--spring), box-shadow 0.35s var(--ease), background-color 0.25s, color 0.25s, border-color 0.25s;
	will-change: transform;
}

.btn:hover { color: var(--bg); }
.btn .icon-arrow, .btn .icon-external { transition: transform 0.35s var(--ease); }
.btn:hover .icon-arrow { transform: translateX(4px); }

.btn--grad {
	background: var(--grad);
	background-size: 200% 100%;
	color: var(--on-accent);
	box-shadow: 0 10px 30px -10px color-mix(in oklab, var(--accent) 70%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.25);
	animation: grad-shift 6s ease infinite;
}

.btn--grad:hover { color: var(--on-accent); box-shadow: 0 18px 44px -12px color-mix(in oklab, var(--accent) 85%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.3); }

.btn--grad::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
	transform: translateX(-120%);
	transition: transform 0.8s var(--ease);
}

.btn--grad:hover::after { transform: translateX(120%); }

@keyframes grad-shift {
	0%, 100% { background-position: 0% 50%; }
	50% { background-position: 100% 50%; }
}

.btn--glass, .btn--ghost {
	background: var(--surface);
	color: var(--ink);
	border-color: var(--border-strong);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.btn--glass:hover, .btn--ghost:hover { color: var(--ink); background: var(--surface-2); border-color: var(--ink-2); }

.btn--small { min-height: 42px; padding: 0 20px; font-size: 14px; }
.btn--block { width: 100%; }

.icon-btn {
	display: inline-grid;
	place-items: center;
	width: 42px; height: 42px;
	padding: 0;
	border: 1px solid var(--border);
	border-radius: 50%;
	background: var(--surface);
	cursor: pointer;
	transition: background-color 0.2s, border-color 0.2s, transform 0.3s var(--spring);
}

.icon-btn:hover { background: var(--surface-2); border-color: var(--border-strong); transform: scale(1.06); }
.icon-btn:disabled { opacity: 0.35; cursor: default; transform: none; }

kbd {
	display: inline-grid;
	place-items: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border: 1px solid var(--border-strong);
	border-bottom-width: 2px;
	border-radius: 6px;
	background: var(--surface);
	font-family: var(--font-sans);
	font-size: 11.5px;
	font-weight: 600;
	color: var(--ink-2);
}

.kbd-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 42px;
	padding: 0 10px 0 14px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--surface);
	color: var(--muted);
	font-size: 14px;
	cursor: pointer;
	transition: border-color 0.2s, color 0.2s;
}

.kbd-btn:hover { border-color: var(--border-strong); color: var(--ink); }
.kbd-btn__label { margin-right: 6px; }

.pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 11px;
	border: 1px solid var(--border);
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	background: var(--surface);
	color: var(--ink-2);
}

.pill--live { color: #4ade80; border-color: rgba(74, 222, 128, 0.3); background: rgba(74, 222, 128, 0.08); }

.live-dot {
	position: relative;
	display: inline-block;
	width: 8px; height: 8px;
	border-radius: 50%;
	background: #4ade80;
	flex: none;
}

.live-dot::after {
	content: "";
	position: absolute;
	inset: -4px;
	border-radius: 50%;
	background: #4ade80;
	opacity: 0.4;
	animation: ping 2s var(--ease) infinite;
}

@keyframes ping {
	0% { transform: scale(0.5); opacity: 0.6; }
	100% { transform: scale(2); opacity: 0; }
}

.text-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
	color: var(--ink);
}

.text-link .icon { transition: transform 0.3s var(--ease); }
.text-link:hover .icon { transform: translateX(4px); }

/* ==========================================================================
   4. Header
   ========================================================================== */
.scroll-progress {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 60;
	height: 2px;
	pointer-events: none;
}

.scroll-progress span {
	display: block;
	height: 100%;
	background: var(--grad);
	transform-origin: left;
	transform: scaleX(var(--progress, 0));
	box-shadow: 0 0 12px var(--accent);
}

.admin-bar .scroll-progress { top: 32px; }

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	height: var(--header-h);
	transition: background-color 0.3s, border-color 0.3s, transform 0.4s var(--ease);
	border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
	background: var(--header-bg);
	-webkit-backdrop-filter: saturate(180%) blur(18px);
	backdrop-filter: saturate(180%) blur(18px);
	border-bottom-color: var(--border);
}

.site-header.is-hidden { transform: translateY(-100%); }
.nav-open .site-header { transform: none; }

.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header, .admin-bar .scroll-progress { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

.site-header__inner { display: flex; align-items: center; gap: 20px; height: 100%; }

.brand { margin-right: auto; }
.brand .custom-logo { max-height: 40px; width: auto; }

.brand__text {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 20px;
	letter-spacing: -0.03em;
	color: var(--ink);
}

.brand__text:hover { color: var(--ink); }

.brand__mark {
	display: grid;
	place-items: center;
	width: 38px; height: 38px;
	border-radius: 12px;
	background: var(--grad);
	color: var(--on-accent);
	font-size: 19px;
	box-shadow: 0 8px 24px -8px var(--accent);
	transition: transform 0.5s var(--spring);
}

.brand__text:hover .brand__mark { transform: rotate(-8deg) scale(1.08); }
.brand__dot { color: var(--accent-2); }

.site-nav { position: relative; }

.site-nav .menu {
	position: relative;
	z-index: 1;
	display: flex;
	gap: 2px;
	margin: 0;
	padding: 5px;
	list-style: none;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--surface);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
}

.site-nav .menu a {
	position: relative;
	display: block;
	padding: 8px 16px;
	border-radius: 999px;
	font-size: 14.5px;
	font-weight: 500;
	color: var(--muted);
	text-decoration: none;
	transition: color 0.25s;
}

.site-nav .menu a:hover,
.site-nav .menu .is-active > a,
.site-nav .menu .current_page_parent > a { color: var(--ink); }

.site-nav__pill {
	position: absolute;
	top: 6px;
	left: 0;
	z-index: 1;
	height: calc(100% - 12px);
	width: 0;
	border-radius: 999px;
	background: var(--surface-2);
	border: 1px solid var(--border);
	opacity: 0;
	pointer-events: none;
	transition: transform 0.45s var(--ease), width 0.45s var(--ease), opacity 0.3s;
}

.site-nav .menu li { position: relative; z-index: 2; }

.site-nav .sub-menu {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	min-width: 200px;
	margin: 0;
	padding: 8px;
	list-style: none;
	background: var(--surface-solid);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: 0.2s var(--ease);
}

.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }

.site-header__actions { display: flex; align-items: center; gap: 8px; }

.theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }
.theme-toggle .icon { transition: transform 0.6s var(--spring); }
.theme-toggle:hover .icon { transform: rotate(40deg); }

.nav-toggle { display: none; }
.nav-toggle .icon-close { display: none; }

@media (max-width: 1100px) {
	.kbd-btn__label { display: none; }
}

@media (max-width: 980px) {
	.nav-toggle { display: inline-grid; }
	.kbd-btn, .header-cta { display: none; }

	.site-nav {
		position: fixed;
		inset: var(--header-h) 0 auto 0;
		max-height: calc(100dvh - var(--header-h));
		overflow-y: auto;
		padding: 12px var(--gutter) 28px;
		background: var(--bg);
		border-bottom: 1px solid var(--border);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		transition: 0.3s var(--ease);
	}

	.nav-open .site-nav { opacity: 1; visibility: visible; transform: none; }
	.nav-open .nav-toggle .icon-menu { display: none; }
	.nav-open .nav-toggle .icon-close { display: block; }
	.site-nav__pill { display: none; }

	.site-nav .menu { flex-direction: column; border: 0; background: none; padding: 0; backdrop-filter: none; }
	.site-nav .menu a { padding: 16px 4px; font-family: var(--font-display); font-size: 28px; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); border-bottom: 1px solid var(--border); border-radius: 0; }
	.site-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 16px; background: none; }
}

/* ==========================================================================
   5. Hero
   ========================================================================== */
.hero {
	position: relative;
	margin-top: calc(var(--header-h) * -1);
	padding: calc(var(--header-h) + clamp(40px, 8vw, 110px)) 0 0;
	overflow: hidden;
}

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

.aurora {
	position: absolute;
	border-radius: 50%;
	filter: blur(90px);
	opacity: var(--aurora-opacity);
	will-change: transform;
}

.aurora--1 { width: 620px; height: 620px; top: -220px; left: -120px; background: var(--accent); animation: drift-1 18s ease-in-out infinite alternate; }
.aurora--2 { width: 520px; height: 520px; top: -120px; right: -140px; background: var(--accent-2); animation: drift-2 22s ease-in-out infinite alternate; }
.aurora--3 { width: 420px; height: 420px; top: 260px; left: 38%; background: color-mix(in oklab, var(--accent) 40%, var(--accent-2)); opacity: calc(var(--aurora-opacity) * 0.55); animation: drift-3 26s ease-in-out infinite alternate; }

@keyframes drift-1 { to { transform: translate(140px, 90px) scale(1.15); } }
@keyframes drift-2 { to { transform: translate(-120px, 140px) scale(0.9); } }
@keyframes drift-3 { to { transform: translate(-160px, -80px) scale(1.2); } }

.hero__grid-bg {
	position: absolute;
	inset: 0;
	background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
	background-size: 64px 64px;
	-webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
	mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
}

.hero__spot {
	position: absolute;
	inset: 0;
	background: radial-gradient(600px circle at var(--hx, 50%) var(--hy, 30%), color-mix(in oklab, var(--accent-2) 12%, transparent), transparent 50%);
	transition: opacity 0.4s;
}

.hero__layout {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
	gap: clamp(40px, 6vw, 90px);
	align-items: center;
	min-height: min(70vh, 720px);
}

.badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 30px;
	padding: 8px 16px 8px 12px;
	border: 1px solid var(--border-strong);
	border-radius: 999px;
	background: var(--surface);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	font-size: 14px;
	font-weight: 500;
	color: var(--ink-2);
}

.badge__dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #4ade80; }
.badge__dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: #4ade80; opacity: 0.4; animation: ping 2s var(--ease) infinite; }

.hero__title { margin: 0 0 18px; }

.hero__hi {
	display: block;
	margin-bottom: 10px;
	font-family: var(--font-sans);
	font-size: clamp(17px, 1.7vw, 21px);
	font-weight: 500;
	letter-spacing: 0;
	color: var(--muted);
}

.wave { display: inline-block; transform-origin: 70% 70%; animation: wave 2.6s ease-in-out 1s infinite; }
@keyframes wave {
	0%, 60%, 100% { transform: rotate(0); }
	10%, 30% { transform: rotate(14deg); }
	20% { transform: rotate(-8deg); }
	40% { transform: rotate(-4deg); }
	50% { transform: rotate(10deg); }
}

.hero__name {
	display: block;
	font-family: var(--font-display);
	font-weight: var(--display-weight);
	font-size: clamp(3.2rem, 8.6vw, 7.6rem);
	line-height: 0.92;
	letter-spacing: var(--display-tracking);
}

.hero__name .grad-text { display: inline-block; padding-right: 0.06em; background-size: 200% 100%; animation: grad-shift 8s ease infinite; }

.hero__roles {
	display: flex;
	align-items: center;
	min-height: 1.6em;
	margin-bottom: 18px;
	font-family: var(--font-display);
	font-size: clamp(20px, 2.3vw, 28px);
	font-weight: 600;
	letter-spacing: -0.02em;
	color: var(--ink);
}

.caret {
	display: inline-block;
	width: 3px;
	height: 1.1em;
	margin-left: 4px;
	border-radius: 2px;
	background: var(--grad);
	animation: blink 1s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.hero__intro { max-width: 580px; margin-bottom: 36px; font-size: clamp(16px, 1.5vw, 18.5px); color: var(--ink-2); }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }

.socials { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }

.socials a {
	display: grid;
	place-items: center;
	width: 44px; height: 44px;
	border: 1px solid var(--border);
	border-radius: 14px;
	background: var(--surface);
	color: var(--ink-2);
	transition: transform 0.35s var(--spring), color 0.2s, border-color 0.2s, background 0.2s;
}

.socials a:hover { color: var(--on-accent); background: var(--grad); border-color: transparent; transform: translateY(-4px) rotate(-6deg); }

/* Portrait */
.hero__visual { position: relative; justify-self: center; width: 100%; max-width: 440px; perspective: 1000px; }

.portrait { position: relative; transform-style: preserve-3d; transition: transform 0.5s var(--ease); }

.portrait__glow {
	position: absolute;
	inset: 8% 6% -4%;
	border-radius: 40px;
	background: var(--grad);
	filter: blur(50px);
	opacity: 0.5;
	animation: breathe 6s ease-in-out infinite;
}

@keyframes breathe { 50% { opacity: 0.75; transform: scale(1.04); } }

.portrait__ring {
	position: absolute;
	inset: -14px;
	border-radius: 44px;
	border: 1px dashed var(--border-strong);
	animation: spin 40s linear infinite;
}

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

.portrait__frame {
	position: relative;
	margin: 0;
	aspect-ratio: 4 / 5;
	border-radius: 34px;
	overflow: hidden;
	border: 1px solid var(--border-strong);
	background: var(--surface-solid);
	box-shadow: var(--shadow);
	transform: translateZ(20px);
}

.portrait__frame::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 55%, rgba(7, 8, 12, 0.45));
}

.portrait__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.portrait:hover .portrait__frame img { transform: scale(1.04); }

.orbit-chip {
	position: absolute;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 8px 16px 8px 8px;
	border: 1px solid var(--border-strong);
	border-radius: 999px;
	background: color-mix(in oklab, var(--surface-solid) 80%, transparent);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	box-shadow: var(--shadow);
	font-size: 13.5px;
	font-weight: 600;
	white-space: nowrap;
	transform: translateZ(60px);
	animation: bob 6s ease-in-out infinite;
}

.orbit-chip__icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--grad); color: var(--on-accent); }

.orbit-chip--1 { top: 9%; left: -18%; }
.orbit-chip--2 { bottom: 16%; right: -16%; animation-delay: -2s; }
.orbit-chip--3 { bottom: -3%; left: 4%; animation-delay: -4s; }

@keyframes bob { 50% { translate: 0 -10px; } }

/* Stats */
.stats {
	display: grid;
	grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
	gap: 14px;
	margin: clamp(56px, 8vw, 100px) 0 0;
}

.stat { display: flex; flex-direction: column-reverse; gap: 6px; padding: 26px 26px 22px; }

.stat__value {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: clamp(2.6rem, 4.8vw, 3.8rem);
	line-height: 1;
	letter-spacing: -0.04em;
	font-variant-numeric: tabular-nums;
}

.stat__label { font-size: 14px; color: var(--muted); }

/* Client marquees */
.marquee-wrap { padding: clamp(48px, 7vw, 80px) 0 0; }

.marquee-wrap__label {
	margin-bottom: 18px;
	text-align: center;
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--muted);
}

.marquee {
	overflow: hidden;
	padding: 8px 0;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee__track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.marquee--reverse .marquee__track { animation-direction: reverse; animation-duration: 80s; }
.marquee:hover .marquee__track { animation-play-state: paused; }

.marquee ul { display: flex; gap: 14px; margin: 0; padding: 0 7px; list-style: none; }

.marquee li {
	padding: 10px 22px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--surface);
	font-family: var(--font-display);
	font-size: 17px;
	font-weight: 500;
	color: var(--ink-2);
	white-space: nowrap;
	transition: color 0.2s, border-color 0.2s;
}

.marquee li:hover { color: var(--ink); border-color: var(--accent); }

@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   6. Sections
   ========================================================================== */
.section { position: relative; padding: var(--section-y) 0; }
.section--tight { padding-top: 0; }
.section--flush-top { padding-top: 0; }

.section-head { margin-bottom: clamp(40px, 5vw, 64px); max-width: 820px; }

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 18px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--accent-ink);
}

.eyebrow a { text-decoration: none; }

.eyebrow__index {
	display: inline-grid;
	place-items: center;
	min-width: 34px;
	height: 26px;
	padding: 0 8px;
	border: 1px solid var(--border-strong);
	border-radius: 999px;
	font-size: 11.5px;
	letter-spacing: 0.06em;
	color: var(--ink-2);
	font-variant-numeric: tabular-nums;
}

.section-title {
	margin: 0;
	font-size: clamp(2.2rem, 5vw, 4rem);
	line-height: 1.02;
	letter-spacing: var(--display-tracking);
	text-wrap: balance;
}

/* Word-by-word reveal (JS wraps words) */
.section-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.section-title .w > span { display: inline-block; transition: transform 0.9s var(--ease), opacity 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 45ms); }
.js .section-head:not(.is-in) .section-title .w > span { transform: translateY(105%); opacity: 0; }

.section-head-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 18px 32px;
	margin-bottom: clamp(40px, 5vw, 60px);
}

.section-head-row .section-head { margin-bottom: 0; }
.section-more { margin: 52px 0 0; text-align: center; }

.empty-hint { padding: 24px; border: 1px dashed var(--border-strong); border-radius: var(--radius); color: var(--muted); }

.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-2); }
.prose { font-size: clamp(16.5px, 1.4vw, 18px); color: var(--ink-2); }
.prose p:last-child { margin-bottom: 0; }

.mini-title {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--muted);
}

/* Bento (About) */
.bento {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-auto-rows: minmax(170px, auto);
	gap: 16px;
}

.tile { padding: 26px; overflow: hidden; }
.tile--bio { grid-column: span 2; grid-row: span 2; padding: clamp(26px, 3vw, 40px); }
.tile--stack { grid-column: span 4; padding: 26px 0; }
.tile--stack .tile__label { padding-inline: 26px; }

.tile__label {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
}

.tile__title { font-size: 22px; margin-bottom: 4px; letter-spacing: -0.025em; }
.tile__sub { margin-bottom: 14px; font-weight: 600; font-size: 17px; }
.tile__meta { margin: 0; font-size: 14px; color: var(--muted); }

.tile--now { background: linear-gradient(160deg, var(--accent-soft), var(--surface) 60%); }

.clock {
	margin: 0 0 6px;
	font-family: var(--font-display);
	font-size: clamp(2.6rem, 4vw, 3.4rem);
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.04em;
	font-variant-numeric: tabular-nums;
}

.clock .sec { color: var(--muted); font-size: 0.5em; margin-left: 4px; }

.checklist { display: grid; gap: 12px; margin: 26px 0 0; padding: 0; list-style: none; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; font-size: 15.5px; color: var(--ink); }

.checklist__icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 24px; height: 24px;
	margin-top: 1px;
	border-radius: 8px;
	background: var(--grad);
	color: var(--on-accent);
}

.lang-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.lang-list li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 14.5px; }
.lang-list__name { font-weight: 600; }
.lang-list__level { color: var(--muted); font-size: 13px; }

.meter { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.meter > span { display: block; width: var(--pct); height: 100%; border-radius: inherit; background: var(--grad); transform-origin: left; transition: transform 1.4s var(--ease) 0.2s; }
.js .tile:not(.is-in) .meter > span { transform: scaleX(0); }

.copy-chip {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	max-width: 100%;
	margin-bottom: 14px;
	padding: 10px 12px 10px 16px;
	border: 1px solid var(--border-strong);
	border-radius: 14px;
	background: var(--surface);
	font-weight: 600;
	font-size: 15px;
	cursor: pointer;
	transition: border-color 0.2s, transform 0.3s var(--spring);
}

.copy-chip:hover { border-color: var(--accent); transform: translateY(-2px); }
.copy-chip__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy-chip__icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--surface-2); color: var(--ink-2); flex: none; }
.copy-chip.is-copied .copy-chip__icon { background: #22c55e; color: var(--on-accent); }

.copy-chip--lg { padding: 12px 14px; font-size: clamp(16px, 1.8vw, 20px); border-radius: 18px; margin: 10px 0 24px; }
.copy-chip__lead { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--grad); color: var(--on-accent); flex: none; }

.tile__link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink-2); text-decoration: none; }

.chip-marquee {
	display: grid;
	gap: 10px;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.chip-marquee__row { display: flex; width: max-content; animation: marquee 50s linear infinite; }
.chip-marquee__row.is-reverse { animation-direction: reverse; animation-duration: 60s; }
.chip-marquee:hover .chip-marquee__row { animation-play-state: paused; }
.chip-marquee ul { display: flex; gap: 10px; margin: 0; padding: 0 5px; list-style: none; }

.tool-chip {
	padding: 8px 16px;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: var(--surface);
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
	color: var(--ink-2);
	transition: 0.2s;
}

.tool-chip:hover { color: var(--on-accent); background: var(--grad); border-color: transparent; }

/* Features (Expertise) */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.feature {
	padding: 30px 28px;
	transform-style: preserve-3d;
	transition: transform 0.4s var(--ease), border-color 0.3s;
}

.feature__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; }

.feature__icon {
	display: grid;
	place-items: center;
	width: 52px; height: 52px;
	border-radius: 16px;
	background: var(--accent-soft);
	border: 1px solid color-mix(in oklab, var(--accent) 30%, transparent);
	color: var(--accent-ink);
	transition: transform 0.5s var(--spring), background 0.3s, color 0.3s;
}

.feature:hover .feature__icon { transform: rotate(-8deg) scale(1.1); background: var(--grad); color: var(--on-accent); border-color: transparent; }
.feature__num { font-family: var(--font-display); font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.feature__title { font-size: 21px; margin-bottom: 10px; letter-spacing: -0.025em; }
.feature p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.6; }

.proficiency { margin-top: 16px; padding: clamp(24px, 4vw, 40px); }
.proficiency__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.proficiency__hint { margin: 0; font-size: 13px; color: var(--muted); }

.bars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 36px; margin: 0; padding: 0; list-style: none; }
.bar { display: grid; grid-template-columns: 1fr auto; gap: 8px; font-size: 15px; cursor: default; }
.bar__label { font-weight: 500; transition: color 0.2s; }
.bar__value { color: var(--muted); font-variant-numeric: tabular-nums; transition: color 0.2s; }
.bar:hover .bar__label { color: var(--accent-ink); }
.bar:hover .bar__value { color: var(--ink); }
.bar__track { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }

.bar__fill {
	display: block;
	width: var(--pct);
	height: 100%;
	border-radius: inherit;
	background: var(--grad);
	transform-origin: left;
	transition: transform 1.4s var(--ease), filter 0.3s;
}

.bar:hover .bar__fill { filter: brightness(1.25) drop-shadow(0 0 6px var(--accent)); }
.js .bars:not(.is-in) .bar__fill { transform: scaleX(0); }

/* Experience tabs */
.xp { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 24px; align-items: start; }

.xp__list { position: relative; display: flex; flex-direction: column; gap: 4px; padding-left: 16px; border-left: 1px solid var(--border); }

.xp__indicator {
	position: absolute;
	left: -1.5px;
	top: 0;
	width: 2px;
	height: 0;
	border-radius: 2px;
	background: var(--grad);
	box-shadow: 0 0 12px var(--accent);
	transition: transform 0.5s var(--ease), height 0.5s var(--ease);
}

.xp__tab {
	display: grid;
	gap: 2px;
	width: 100%;
	padding: 16px 18px;
	border: 1px solid transparent;
	border-radius: 16px;
	background: none;
	text-align: left;
	cursor: pointer;
	transition: background 0.25s, border-color 0.25s;
}

.xp__tab:hover { background: var(--surface); }
.xp__tab.is-active { background: var(--surface); border-color: var(--border); }
.xp__tab-company { font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--muted); letter-spacing: -0.02em; transition: color 0.25s; }
.xp__tab.is-active .xp__tab-company, .xp__tab:hover .xp__tab-company { color: var(--ink); }
.xp__tab-period { font-size: 13px; color: var(--muted); }

.xp__panels { padding: clamp(26px, 3.5vw, 44px); min-height: 100%; }
.js .xp__panel:not(.is-active) { display: none; }
.xp__panel + .xp__panel { margin-top: 40px; }
.js .xp__panel + .xp__panel { margin-top: 0; }
.xp__panel.is-active { animation: panel-in 0.55s var(--ease); }
.xp__panel:focus-visible { outline-offset: 8px; }

@keyframes panel-in {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: none; }
}

.xp__head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 22px; }
.xp__logo { width: 56px; height: 56px; flex: none; border-radius: 14px; overflow: hidden; background: #fff; }
.xp__logo img { width: 100%; height: 100%; object-fit: contain; }
.xp__role { font-size: clamp(22px, 2.4vw, 30px); margin-bottom: 10px; letter-spacing: -0.03em; }
.xp__at { font-weight: 500; }
.xp__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 0; font-size: 14px; color: var(--muted); }
.xp__meta > span { display: inline-flex; align-items: center; gap: 6px; }

.xp__body { color: var(--ink-2); font-size: 16px; }
.xp__body ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.xp__body li { position: relative; padding-left: 28px; }
.xp__body li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.5em;
	width: 14px;
	height: 8px;
	border-left: 2px solid var(--accent-2);
	border-bottom: 2px solid var(--accent-2);
	transform: rotate(-45deg) translateY(-3px);
	border-radius: 1px;
}
.xp__body p:last-child { margin-bottom: 0; }

/* Education */
.edu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.edu { padding: 28px; }
.edu__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.edu__icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; background: var(--grad); color: var(--on-accent); }
.edu__year { font-family: var(--font-display); font-size: 28px; font-weight: 600; letter-spacing: -0.04em; color: var(--muted); }
.edu__title { font-size: 20px; margin-bottom: 6px; letter-spacing: -0.02em; }
.edu__school { margin-bottom: 0; font-weight: 500; color: var(--accent-ink); font-size: 15px; }
.edu__text { margin-top: 14px; font-size: 14.5px; color: var(--muted); }
.edu__text p:last-child { margin-bottom: 0; }

/* Certifications carousel */
.carousel-nav { display: flex; align-items: center; gap: 8px; }
.carousel-nav__count { margin-right: 8px; font-size: 14px; color: var(--muted); }

.carousel { position: relative; }

.carousel__track {
	display: flex;
	gap: 16px;
	margin: 0;
	padding: 6px max(var(--gutter), calc((100vw - var(--container)) / 2)) 24px;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2));
	scrollbar-width: none;
	cursor: grab;
	-webkit-overflow-scrolling: touch;
}

.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.carousel__track.is-dragging a { pointer-events: none; }
.carousel__item { flex: 0 0 clamp(230px, 24vw, 270px); scroll-snap-align: start; }

.cert {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 18px 18px 18px;
	text-decoration: none;
	color: var(--ink);
	user-select: none;
	transition: transform 0.4s var(--ease), border-color 0.3s;
}

a.cert:hover { color: var(--ink); transform: translateY(-6px); }

.cert__media {
	display: grid;
	place-items: center;
	aspect-ratio: 16 / 10;
	margin-bottom: 18px;
	border-radius: 14px;
	background: #fff;
	overflow: hidden;
}

.cert__media img { width: 100%; height: 100%; object-fit: contain; padding: 10px; pointer-events: none; }
.cert__media .card__placeholder { font-size: 42px; color: var(--accent); background: linear-gradient(135deg, #fff, #eef); }
.cert__title { font-family: var(--font-display); font-weight: 600; font-size: 17px; line-height: 1.3; letter-spacing: -0.02em; margin-bottom: 4px; }
.cert__meta { font-size: 13.5px; color: var(--muted); margin-bottom: 16px; }
.cert__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.cert__verify { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--accent-ink); }

/* Portfolio */
.filters { position: relative; display: flex; flex-wrap: wrap; gap: 2px; padding: 5px; border-radius: 999px; }

.filters__pill {
	position: absolute;
	top: 5px;
	left: 0;
	height: calc(100% - 10px);
	width: 0;
	border-radius: 999px;
	background: var(--grad);
	box-shadow: 0 8px 22px -8px var(--accent);
	transition: transform 0.5s var(--ease), width 0.5s var(--ease);
	pointer-events: none;
}

.filter {
	position: relative;
	z-index: 1;
	padding: 9px 18px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	font-size: 14px;
	font-weight: 500;
	color: var(--muted);
	cursor: pointer;
	transition: color 0.3s;
}

.filter:hover { color: var(--ink); }
.filter.is-active { color: var(--on-accent); }
html:not(.js) .filter.is-active { background: var(--grad); }

.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 22px; }

.project.is-hidden { display: none !important; }
.js .projects:not(.is-expanded):not(.is-filtered) .project.is-extra { display: none; }
.projects.is-filtered ~ [data-more-wrap] { display: none; }
.project.is-pop { animation: pop-in 0.6s var(--ease) both; }

@keyframes pop-in {
	from { opacity: 0; transform: translateY(20px) scale(0.96); }
	to { opacity: 1; transform: none; }
}

.project__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink); cursor: pointer; }
.project__link:hover { color: var(--ink); }

.project__media {
	display: block;
	overflow: hidden;
	transform-style: preserve-3d;
	transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.3s;
}

.project__link:hover .project__media { box-shadow: 0 30px 60px -25px color-mix(in oklab, var(--accent) 55%, transparent); border-color: color-mix(in oklab, var(--accent) 50%, transparent); }

.project__browser {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 11px 14px;
	border-bottom: 1px solid var(--border);
}

.project__browser i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.project__browser i:nth-child(1) { background: #ff5f57; }
.project__browser i:nth-child(2) { background: #febc2e; }
.project__browser i:nth-child(3) { background: #28c840; }

.project__url {
	flex: 1;
	margin-left: 10px;
	padding: 3px 10px;
	border-radius: 7px;
	background: var(--surface-2);
	font-size: 11.5px;
	color: var(--muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.project__shot { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); container-type: size; }

.project__shot img {
	width: 100%;
	height: auto;
	min-height: 100%;
	object-fit: cover;
	object-position: top;
	transition: transform 5s ease;
}

.project__link:hover .project__shot img { transform: translateY(calc(-100% + 100cqh)); }

.project__overlay {
	position: absolute;
	inset: auto 0 0 0;
	display: flex;
	justify-content: center;
	padding: 18px;
	background: linear-gradient(transparent, rgba(7, 8, 12, 0.7));
	opacity: 0;
	transform: translateY(10px);
	transition: 0.4s var(--ease);
}

.project__link:hover .project__overlay { opacity: 1; transform: none; }

.project__overlay-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 16px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.95);
	color: #0b0d16;
	font-size: 13.5px;
	font-weight: 600;
}

.card__placeholder, .post-card__placeholder {
	display: grid;
	place-items: center;
	width: 100%; height: 100%;
	font-family: var(--font-display);
	font-size: 64px;
	color: var(--muted);
	background: linear-gradient(135deg, var(--surface-2), var(--accent-soft));
}

.project__body { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 4px 0; }
.project__text { display: grid; gap: 2px; min-width: 0; }
.project__title { font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }
.project__client { font-size: 14px; color: var(--muted); }

.project__go {
	display: grid;
	place-items: center;
	flex: none;
	width: 40px; height: 40px;
	border: 1px solid var(--border-strong);
	border-radius: 50%;
	transition: 0.4s var(--spring);
}

.project__link:hover .project__go { background: var(--grad); border-color: transparent; color: var(--on-accent); transform: rotate(-45deg); }

/* Blog cards */
.posts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }

.post-card { display: flex; flex-direction: column; overflow: hidden; transition: transform 0.45s var(--ease); }
.post-card:hover { transform: translateY(-6px); }
.post-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); margin: 8px 8px 0; border-radius: 16px; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.06); }
.post-card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 22px; }
.post-card__cat { margin-bottom: 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-ink); }
.post-card__title { font-size: 20px; line-height: 1.3; letter-spacing: -0.02em; margin-bottom: 10px; }
.post-card__title a { text-decoration: none; }
.post-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.post-card__excerpt { font-size: 15px; color: var(--muted); }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: auto 0 0; padding-top: 6px; font-size: 13.5px; color: var(--muted); }

/* Contact */
.contact__card {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(32px, 5vw, 72px);
	padding: clamp(28px, 5vw, 64px);
	border-radius: var(--radius-lg);
	overflow: hidden;
}

.contact__glow {
	position: absolute;
	z-index: -1;
	width: 600px; height: 600px;
	right: -200px; bottom: -300px;
	border-radius: 50%;
	background: var(--grad);
	filter: blur(120px);
	opacity: 0.35;
	pointer-events: none;
}

.contact__intro .section-head { margin-bottom: 24px; }
.contact__list { display: grid; gap: 12px; margin: 0 0 26px; padding: 0; list-style: none; color: var(--ink-2); }
.contact__list li { display: flex; align-items: center; gap: 12px; }
.contact__list a { text-decoration: none; }

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.field { position: relative; margin: 0 0 14px; }

.field input,
.field textarea {
	width: 100%;
	padding: 26px 18px 10px;
	border: 1px solid var(--border-strong);
	border-radius: 16px;
	background: var(--surface);
	color: var(--ink);
	font: inherit;
	font-size: 16px;
	transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
}

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

.field label {
	position: absolute;
	left: 19px;
	top: 18px;
	font-size: 16px;
	color: var(--muted);
	pointer-events: none;
	transform-origin: left top;
	transition: transform 0.25s var(--ease), color 0.25s;
}

.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label { transform: translateY(-10px) scale(0.76); color: var(--accent-ink); }

.field input:focus,
.field textarea:focus {
	outline: none;
	border-color: var(--accent);
	background: var(--surface-2);
	box-shadow: 0 0 0 4px var(--accent-soft);
}

.field--hp { position: absolute !important; left: -9999px; }

.notice { margin: 0 0 18px; padding: 14px 16px; border-radius: 14px; font-weight: 500; font-size: 15px; }
.notice--success { background: rgba(34, 197, 94, 0.12); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.3); }
.notice--error { background: rgba(239, 68, 68, 0.1); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
[data-theme="light"] .notice--success { color: #15803d; }
[data-theme="light"] .notice--error { color: #b91c1c; }

/* Generic form controls (comments, search) */
.comment-form input:not([type="submit"]):not([type="checkbox"]),
.comment-form textarea,
.search-form__field {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid var(--border-strong);
	border-radius: 14px;
	background: var(--surface);
	color: var(--ink);
	font: inherit;
	font-size: 16px;
}

.comment-form input:focus, .comment-form textarea:focus, .search-form__field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

/* ==========================================================================
   7. Inner pages
   ========================================================================== */
.page-hero { position: relative; padding: clamp(64px, 10vw, 130px) 0 clamp(40px, 6vw, 72px); overflow: hidden; }
.page-hero::before {
	content: "";
	position: absolute;
	z-index: -1;
	width: 700px; height: 500px;
	top: -300px; left: 50%;
	transform: translateX(-50%);
	border-radius: 50%;
	background: var(--grad);
	filter: blur(120px);
	opacity: 0.22;
}

.page-hero--center { text-align: center; padding-bottom: var(--section-y); }
.page-hero__title { max-width: 920px; font-size: clamp(2.6rem, 6.4vw, 5rem); line-height: 1; letter-spacing: var(--display-tracking); text-wrap: balance; }
.page-hero--center .page-hero__title, .page-hero--center .page-hero__lead { margin-inline: auto; }
.page-hero__lead { max-width: 640px; font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); }

.big-404 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(7rem, 24vw, 15rem); line-height: 0.9; letter-spacing: -0.06em; }
.page-hero--center .search-form { margin: 0 auto 24px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }

.chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 16px;
	border: 1px solid var(--border-strong);
	border-radius: 999px;
	background: var(--surface);
	font-size: 14px;
	font-weight: 500;
	color: var(--ink-2);
	text-decoration: none;
	transition: 0.2s;
}

.chip:hover { color: var(--ink); border-color: var(--ink-2); }
.chip.is-active { background: var(--grad); border-color: transparent; color: var(--on-accent); }
.chip__count { opacity: 0.65; font-variant-numeric: tabular-nums; }
ul.chips .chip a { text-decoration: none; }

.search-form { position: relative; display: flex; gap: 8px; max-width: 480px; }
.search-form__icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-form__field { padding-left: 46px; }
.search-form .btn { flex: none; min-height: 52px; }

.empty { padding: 48px 0; color: var(--muted); }

.article__header { padding-top: clamp(64px, 9vw, 120px); padding-bottom: 36px; }
.article__title { font-size: clamp(2.4rem, 5.6vw, 4.2rem); line-height: 1.04; letter-spacing: var(--display-tracking); text-wrap: balance; }
.article__byline { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.article__byline img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.article__byline .post-meta { padding: 0; }
.article__author { margin: 0; font-weight: 600; }
.article__cover { margin: 0 auto clamp(40px, 6vw, 72px); }
.article__cover img { width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.case__shot img { max-height: 80vh; object-fit: cover; object-position: top; }
.case__facts { display: flex; flex-wrap: wrap; gap: 16px 48px; margin: 32px 0 0; padding-top: 28px; border-top: 1px solid var(--border); }
.case__facts dt { font-size: 13px; color: var(--muted); }
.case__facts dd { margin: 0; font-weight: 600; }
.case__facts a { text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }

.article__footer { padding-top: 40px; padding-bottom: var(--section-y); }

.author-box { display: flex; gap: 20px; align-items: center; margin: 40px 0; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.author-box img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.author-box p { margin: 0; }
.author-box__name { font-weight: 700; }
.author-box__role { color: var(--muted); font-size: 15px; margin-bottom: 6px !important; }

.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-navigation a { display: grid; gap: 4px; height: 100%; padding: 20px 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); text-decoration: none; transition: border-color 0.2s, transform 0.3s var(--ease); }
.post-navigation a:hover { border-color: var(--accent); color: var(--ink); transform: translateY(-3px); }
.post-navigation .nav-next { text-align: right; grid-column: 2; }
.nav-label { font-size: 13px; color: var(--muted); }
.nav-title { font-weight: 600; }

.pagination { margin-top: 56px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding: 0 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); text-decoration: none; font-weight: 500; }
.pagination .page-numbers.current { background: var(--grad); color: var(--on-accent); border-color: transparent; }

.entry-content { font-size: 18px; line-height: 1.8; color: var(--ink-2); }
.entry-content > * { margin-block: 0 1.4em; }
.entry-content h2, .entry-content h3, .entry-content h4 { color: var(--ink); margin-top: 2em; }
.entry-content h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); letter-spacing: -0.03em; }
.entry-content h3 { font-size: 1.45rem; }
.entry-content a { color: var(--accent-ink); }
.entry-content strong { color: var(--ink); }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: 0.4em; }
.entry-content blockquote { margin-inline: 0; padding: 18px 24px; border-left: 3px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--surface); font-family: var(--font-display); font-size: 1.35em; line-height: 1.4; color: var(--ink); }
.entry-content blockquote p:last-child { margin: 0; }
.entry-content pre, .entry-content code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.88em; }
.entry-content :not(pre) > code { padding: 2px 6px; border-radius: 6px; background: var(--surface-2); }
.entry-content pre { padding: 20px; border-radius: var(--radius-sm); background: var(--surface-solid); border: 1px solid var(--border); overflow-x: auto; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 16px; }
.entry-content th, .entry-content td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; }
.entry-content hr { border: 0; border-top: 1px solid var(--border); margin-block: 3em; }
.entry-content .alignwide { max-width: min(1100px, 100vw - var(--gutter) * 2); margin-inline: calc(50% - min(550px, 50vw - var(--gutter))); }
.entry-content .alignfull { max-width: 100vw; margin-inline: calc(50% - 50vw); }
.entry-content .alignfull img, .entry-content .alignwide img { width: 100%; }
.entry-content .wp-block-button__link { border-radius: 999px; background: var(--grad); color: var(--on-accent); padding: 14px 26px; text-decoration: none; font-weight: 600; font-size: 15px; }
.entry-content .wp-block-image figcaption, .wp-caption-text { font-size: 14px; color: var(--muted); text-align: center; }
.entry-content--wide { padding-block: var(--section-y); }

.alignleft { float: left; margin: 0.4em 1.5em 1em 0; }
.alignright { float: right; margin: 0.4em 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }

.comments { padding-bottom: var(--section-y); }
.comments__title, .comment-reply-title { font-size: 24px; letter-spacing: -0.02em; }
.comment-list { margin: 0 0 48px; padding: 0; list-style: none; }
.comment-list .children { list-style: none; padding-left: 32px; }
.comment-body { padding: 20px 0; border-bottom: 1px solid var(--border); }
.comment-author { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.comment-author img { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata { font-size: 13px; margin: 4px 0 10px 56px; }
.comment-metadata a { color: var(--muted); text-decoration: none; }
.comment-content { margin-left: 56px; color: var(--ink-2); }
.reply { margin-left: 56px; font-size: 14px; font-weight: 600; }
.comment-form p { margin-bottom: 16px; }
.comment-form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.comment-form-cookies-consent { display: flex; gap: 10px; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 400; color: var(--muted); }

/* ==========================================================================
   8. Footer
   ========================================================================== */
.site-footer { position: relative; padding: clamp(80px, 10vw, 130px) 0 32px; border-top: 1px solid var(--border); overflow: hidden; }

.site-footer__glow {
	position: absolute;
	z-index: -1;
	left: 50%;
	top: -260px;
	width: 900px; height: 520px;
	transform: translateX(-50%);
	border-radius: 50%;
	background: var(--grad);
	filter: blur(130px);
	opacity: 0.18;
	pointer-events: none;
}

.site-footer__cta { padding-bottom: clamp(56px, 8vw, 96px); text-align: center; }

.footer-big {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0 0.28em;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: clamp(2.6rem, 7.6vw, 6.8rem);
	line-height: 1;
	letter-spacing: -0.05em;
	text-decoration: none;
	color: var(--ink);
}

.footer-big:hover { color: var(--ink); }
.footer-big__end { display: inline-flex; align-items: center; gap: 0.2em; white-space: nowrap; }

.footer-big__arrow {
	display: inline-grid;
	place-items: center;
	width: 0.8em; height: 0.8em;
	border-radius: 50%;
	background: var(--grad);
	color: var(--on-accent);
	transition: transform 0.5s var(--spring);
}

.footer-big__arrow .icon { width: 45%; height: 45%; }
.footer-big:hover .footer-big__arrow { transform: rotate(-45deg) scale(1.08); }

.site-footer__grid {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 28px;
	padding: 36px 0;
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}

.footer-name { font-family: var(--font-display); font-weight: 600; font-size: 26px; letter-spacing: -0.03em; text-decoration: none; color: var(--ink); }
.site-footer__brand p { margin: 4px 0 6px; color: var(--muted); font-size: 15px; }
.footer-mail { font-weight: 500; color: var(--ink-2); text-decoration: none; }
.footer-mail:hover { color: var(--accent-ink); }

.footer-menu { display: flex; flex-wrap: wrap; gap: 20px; margin: 0; padding: 0; list-style: none; }
.footer-menu a { text-decoration: none; color: var(--muted); }
.footer-menu a:hover { color: var(--ink); }

.site-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; font-size: 14px; color: var(--muted); }
.site-footer__copy { margin: 0; }
.footer-kbd { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 14px; }
.footer-kbd:hover { color: var(--ink); }

.to-top {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 40;
	display: grid;
	place-items: center;
	width: 52px; height: 52px;
	border-radius: 50%;
	background: var(--surface-solid);
	color: var(--ink);
	border: 1px solid var(--border);
	box-shadow: var(--shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px) scale(0.9);
	transition: 0.4s var(--spring);
}

.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--ink); transform: translateY(-3px); }
.to-top__ring { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); transform: rotate(-90deg); }
.to-top__ring circle { fill: none; stroke: var(--accent-2); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--progress, 0) * 100); }

/* ==========================================================================
   9. Command palette, modal, toast, cursor
   ========================================================================== */
.cmdk { position: fixed; inset: 0; z-index: 200; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; }
.cmdk[hidden] { display: none; }
.cmdk__backdrop { position: absolute; inset: 0; background: rgba(5, 6, 10, 0.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fade-in 0.2s ease; }

.cmdk__panel {
	position: relative;
	width: 100%;
	max-width: 620px;
	max-height: 72vh;
	display: flex;
	flex-direction: column;
	border: 1px solid var(--border-strong);
	border-radius: 22px;
	background: color-mix(in oklab, var(--surface-solid) 92%, transparent);
	-webkit-backdrop-filter: blur(24px);
	backdrop-filter: blur(24px);
	box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.7);
	overflow: hidden;
	animation: cmdk-in 0.28s var(--ease);
}

@keyframes cmdk-in { from { opacity: 0; transform: translateY(-10px) scale(0.98); } }
@keyframes fade-in { from { opacity: 0; } }

.cmdk__search { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); color: var(--muted); }
.cmdk__input { flex: 1; min-width: 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: 17px; outline: none; }
.cmdk__input::placeholder { color: var(--muted); }
.cmdk__list { overflow-y: auto; padding: 8px; overscroll-behavior: contain; }
.cmdk__group-label { margin: 10px 12px 6px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

.cmdk__item {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 10px 12px;
	border: 0;
	border-radius: 12px;
	background: none;
	text-align: left;
	text-decoration: none;
	color: var(--ink-2);
	font-size: 15px;
	cursor: pointer;
}

.cmdk__item.is-selected { background: var(--surface-2); color: var(--ink); }
.cmdk__icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); flex: none; }
.cmdk__item.is-selected .cmdk__icon { background: var(--grad); color: var(--on-accent); border-color: transparent; }
.cmdk__label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmdk__hint { font-size: 13px; color: var(--muted); white-space: nowrap; }
.cmdk__enter { opacity: 0; color: var(--muted); }
.cmdk__item.is-selected .cmdk__enter { opacity: 1; }
.cmdk__empty { padding: 28px; text-align: center; color: var(--muted); }
.cmdk__footer { display: flex; gap: 18px; padding: 10px 18px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--muted); }
.cmdk__footer kbd { margin-right: 3px; }

.modal { position: fixed; inset: 0; z-index: 190; display: grid; place-items: center; padding: 3vh 3vw; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(5, 6, 10, 0.7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: fade-in 0.25s ease; }

.modal__panel {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 1280px;
	height: 100%;
	max-height: 880px;
	border: 1px solid var(--border-strong);
	border-radius: 24px;
	background: var(--surface-solid);
	box-shadow: 0 50px 120px -30px rgba(0, 0, 0, 0.8);
	overflow: hidden;
	animation: modal-in 0.45s var(--ease);
}

@keyframes modal-in { from { opacity: 0; transform: translateY(24px) scale(0.97); } }

.modal__bar { display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 18px; border-bottom: 1px solid var(--border); }
.modal__dots { display: flex; gap: 7px; }
.modal__dots i { width: 11px; height: 11px; border-radius: 50%; }
.modal__dots i:nth-child(1) { background: #ff5f57; }
.modal__dots i:nth-child(2) { background: #febc2e; }
.modal__dots i:nth-child(3) { background: #28c840; }
.modal__address { flex: 1; min-width: 0; max-width: 460px; margin: 0 auto; padding: 7px 14px; border-radius: 10px; background: var(--surface-2); font-size: 13.5px; color: var(--muted); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.modal__nav { display: flex; gap: 6px; }
.modal__nav .icon-btn { width: 36px; height: 36px; }

.modal__body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 340px; }
.modal__shot { overflow-y: auto; background: var(--bg-2); overscroll-behavior: contain; scrollbar-width: thin; }
.modal__shot img { width: 100%; height: auto; animation: fade-in 0.5s ease; }
.modal__info { display: flex; flex-direction: column; padding: 32px 28px; border-left: 1px solid var(--border); overflow-y: auto; }
.modal__title { font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.035em; margin-bottom: 6px; }
.modal__client { color: var(--muted); }
.modal__text { color: var(--ink-2); font-size: 15.5px; }
.modal__text:empty, .modal__client:empty { display: none; }
.modal__actions { display: grid; gap: 10px; margin-top: 10px; }
.modal__tip { display: flex; gap: 8px; align-items: flex-start; margin-top: auto; padding-top: 24px; font-size: 13px; color: var(--muted); }
.modal__tip .icon { margin-top: 3px; color: var(--accent-2); }

.toast {
	position: fixed;
	left: 50%;
	bottom: 28px;
	z-index: 300;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 18px;
	border: 1px solid var(--border-strong);
	border-radius: 999px;
	background: var(--surface-solid);
	box-shadow: var(--shadow);
	font-size: 14.5px;
	font-weight: 500;
	transform: translate(-50%, 140%);
	opacity: 0;
	transition: 0.45s var(--spring);
	pointer-events: none;
}

.toast .icon { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: #22c55e; color: var(--on-accent); }
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

.cursor { position: fixed; top: 0; left: 0; z-index: 400; pointer-events: none; display: none; }
.has-cursor .cursor { display: block; }

.cursor__dot, .cursor__ring {
	position: fixed;
	top: 0; left: 0;
	border-radius: 50%;
	transform: translate3d(var(--x, -100px), var(--y, -100px), 0) translate(-50%, -50%);
}

.cursor__dot { width: 6px; height: 6px; background: var(--accent-2); }

.cursor__ring {
	width: 36px; height: 36px;
	border: 1.5px solid color-mix(in oklab, var(--accent-2) 60%, transparent);
	transform: translate3d(var(--rx, -100px), var(--ry, -100px), 0) translate(-50%, -50%) scale(var(--rs, 1));
	transition: width 0.3s var(--ease), height 0.3s var(--ease), background-color 0.3s, border-color 0.3s;
}

.cursor.is-hover .cursor__ring { width: 64px; height: 64px; background: color-mix(in oklab, var(--accent) 14%, transparent); border-color: var(--accent); }
.cursor.is-down .cursor__ring { --rs: 0.8; }
.cursor.is-text .cursor__ring { width: 4px; height: 28px; border-radius: 2px; background: var(--accent-2); border: 0; }

/* ==========================================================================
   10. Reveal motion
   ========================================================================== */
.js .reveal {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
	transition-delay: calc(var(--d, 0) * 80ms);
}

.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
	.js .reveal { opacity: 1; transform: none; }
	.js .section-head:not(.is-in) .section-title .w > span { transform: none; opacity: 1; }
	.marquee__track, .chip-marquee__row { animation: none; }
	.cursor { display: none !important; }
}

/* ==========================================================================
   11. Responsive
   ========================================================================== */
@media (max-width: 1100px) {
	.projects, .posts-grid, .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tile--bio { grid-column: span 2; grid-row: auto; }
	.tile--stack { grid-column: span 2; }
	.orbit-chip--1 { left: -6%; }
	.orbit-chip--2 { right: -6%; }
	.modal__body { grid-template-columns: minmax(0, 1fr) 280px; }
}

@media (max-width: 900px) {
	.hero__layout { grid-template-columns: 1fr; min-height: 0; }
	.hero__visual { max-width: 340px; justify-self: center; margin: 24px 0 20px; }
	.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.contact__card { grid-template-columns: 1fr; }
	.xp { grid-template-columns: 1fr; }
	.xp__list { flex-direction: row; overflow-x: auto; padding: 0 0 2px; border-left: 0; border-bottom: 1px solid var(--border); scrollbar-width: none; }
	.xp__list::-webkit-scrollbar { display: none; }
	.xp__tab { flex: none; width: auto; border-radius: 12px 12px 0 0; }
	.xp__indicator { left: 0; top: auto; bottom: -1.5px; width: 0; height: 2px !important; transition: transform 0.5s var(--ease), width 0.5s var(--ease); }
	.modal__body { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
	.modal__info { border-left: 0; border-top: 1px solid var(--border); padding: 20px; }
	.modal__tip { display: none; }
	.modal__actions { grid-template-columns: 1fr 1fr; }
	.modal { padding: 0; }
	.modal__panel { border-radius: 0; max-height: none; }
}

@media (max-width: 640px) {
	body { font-size: 16px; }
	.hero__visual { max-width: 250px; }
	.orbit-chip { font-size: 12px; padding: 6px 12px 6px 6px; }
	.orbit-chip__icon { width: 24px; height: 24px; }
	.orbit-chip--1 { left: auto; right: -50%; top: 10%; }
	.orbit-chip--2 { right: -58%; bottom: 40%; }
	.orbit-chip--3 { left: auto; right: -40%; bottom: 8%; }
	.projects, .posts-grid, .features, .bars { grid-template-columns: 1fr; }
	.bento { grid-template-columns: 1fr; }
	.tile--bio, .tile--stack { grid-column: auto; }
	.form__row { grid-template-columns: 1fr; gap: 0; }
	.hero__actions .btn { flex: 1 1 auto; }
	.stat { padding: 20px 18px 18px; }
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.post-navigation .nav-next { grid-column: 1; }
	.carousel-nav__count { display: none; }
	.modal__actions { grid-template-columns: 1fr; }
	.to-top { right: 14px; bottom: 14px; }
}

@media (max-width: 420px) {
	.orbit-chip { display: none; }
	.hero__visual { max-width: 220px; }
}

@media (hover: none) {
	.cursor { display: none !important; }
}

@media print {
	.site-header, .site-footer, .to-top, .contact__form, .marquee-wrap, .filters, .cmdk, .modal, .cursor, .hero__bg, .scroll-progress { display: none !important; }
	.js .reveal { opacity: 1; transform: none; }
	body { background: #fff; color: #000; }
}


/* ==========================================================================
   12. Neon / tech details
   ========================================================================== */
.eyebrow,
.tile__label,
.mini-title,
.marquee-wrap__label,
.cmdk__group-label,
.xp__tab-period,
.stat__label,
.feature__num,
.pillar__num,
.project__url,
.modal__address,
.post-card__cat,
.ai-demo__who,
.ai-demo__tag,
.ai-demo__why,
kbd {
	font-family: var(--font-mono);
	letter-spacing: 0.06em;
}

.eyebrow { letter-spacing: 0.08em; }
.eyebrow::before { content: "//"; color: var(--accent-2); opacity: 0.8; }
.eyebrow__index { order: -1; }

.hero__hi { font-family: var(--font-mono); font-size: clamp(15px, 1.4vw, 18px); color: var(--accent-ink); }
.hero__hi::before { content: "> "; color: var(--accent-2); }

.badge { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.02em; }
.badge__dot, .badge__dot::after, .live-dot, .live-dot::after { background: var(--accent); }
.pill--live { color: var(--accent); border-color: color-mix(in oklab, var(--accent) 35%, transparent); background: color-mix(in oklab, var(--accent) 8%, transparent); }

.caret { box-shadow: var(--glow); }
.btn--grad { box-shadow: 0 0 0 1px color-mix(in oklab, var(--accent) 40%, transparent), 0 12px 36px -10px color-mix(in oklab, var(--accent) 70%, transparent); }
.btn--grad:hover { box-shadow: 0 0 0 1px var(--accent), 0 0 40px -6px color-mix(in oklab, var(--accent) 80%, transparent); }
.brand__mark { box-shadow: var(--glow); }
.scroll-progress span { box-shadow: 0 0 14px var(--accent), 0 0 4px var(--accent-2); }

.glass { border-color: color-mix(in oklab, var(--accent) 9%, var(--border)); }
.feature:hover, .edu:hover, .cert:hover, .tile:hover { border-color: color-mix(in oklab, var(--accent) 35%, transparent); }

.stat__value .grad-text, .stat__value { text-shadow: none; }
.stat { position: relative; }
.stat::after {
	content: "";
	position: absolute;
	left: 26px; right: 26px; top: -1px;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--accent), transparent);
	opacity: 0.5;
}

.marquee li:hover { border-color: var(--accent); color: var(--accent); box-shadow: var(--glow); }

/* Section divider line */
.section + .section::before {
	content: "";
	position: absolute;
	top: 0; left: 50%;
	width: min(1240px, 90vw);
	height: 1px;
	transform: translateX(-50%);
	background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--accent) 25%, transparent), transparent);
}

/* ==========================================================================
   13. AI & Search section
   ========================================================================== */
.ai { overflow: hidden; }

.ai__grid-bg {
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
	background-size: 48px 48px;
	-webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 70%);
	mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 70%);
	pointer-events: none;
}

.ai__top {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(32px, 5vw, 72px);
	align-items: center;
	margin-bottom: clamp(40px, 5vw, 64px);
}

.ai__top .section-head { margin-bottom: 22px; }

/* Demo window */
.ai-demo { position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: 0 0 0 1px color-mix(in oklab, var(--accent) 18%, transparent), 0 40px 80px -40px color-mix(in oklab, var(--accent) 45%, transparent); }

.ai-demo__bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.ai-demo__dots { display: flex; gap: 6px; }
.ai-demo__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.ai-demo__title { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.ai-demo__tag { margin-left: auto; padding: 2px 8px; border: 1px solid var(--border-strong); border-radius: 6px; font-size: 10.5px; text-transform: uppercase; color: var(--muted); }

.ai-demo__body { display: grid; gap: 14px; padding: 22px; min-height: 330px; align-content: start; }

.ai-demo__msg { margin: 0; display: grid; gap: 6px; max-width: 92%; }
.ai-demo__who { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; text-transform: uppercase; color: var(--muted); }
.ai-demo__text { margin: 0; padding: 12px 16px; border-radius: 16px; font-size: 15px; line-height: 1.55; }

.ai-demo__msg--user { justify-self: end; text-align: right; }
.ai-demo__msg--user .ai-demo__who { justify-self: end; }
.ai-demo__msg--user .ai-demo__text { background: var(--surface-2); border: 1px solid var(--border); border-bottom-right-radius: 4px; color: var(--ink); }

.ai-demo__msg--bot .ai-demo__who { color: var(--accent); }
.ai-demo__msg--bot .ai-demo__text {
	background: color-mix(in oklab, var(--accent) 7%, transparent);
	border: 1px solid color-mix(in oklab, var(--accent) 25%, transparent);
	border-bottom-left-radius: 4px;
	color: var(--ink-2);
}

.ai-demo__text mark {
	padding: 1px 6px;
	border-radius: 6px;
	background: var(--grad);
	color: var(--on-accent);
	font-weight: 700;
	box-shadow: var(--glow);
}

.ai-demo__thinking { display: none; gap: 5px; padding: 14px 16px; width: max-content; border-radius: 16px; background: color-mix(in oklab, var(--accent) 7%, transparent); border: 1px solid color-mix(in oklab, var(--accent) 25%, transparent); }
.ai-demo__thinking i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: think 1.2s ease-in-out infinite; }
.ai-demo__thinking i:nth-child(2) { animation-delay: 0.15s; }
.ai-demo__thinking i:nth-child(3) { animation-delay: 0.3s; }
@keyframes think { 0%, 80%, 100% { opacity: 0.25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }

.ai-demo__why { margin: 4px 0 8px; font-size: 11px; text-transform: uppercase; color: var(--muted); }
.ai-demo__signals ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }

.ai-demo__signals li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border: 1px solid color-mix(in oklab, var(--accent-2) 35%, transparent);
	border-radius: 999px;
	background: color-mix(in oklab, var(--accent-2) 8%, transparent);
	font-size: 13px;
	font-weight: 500;
	color: var(--ink);
}

.ai-demo__signals li .icon { color: var(--accent); }

.ai-demo__replay {
	position: absolute;
	right: 14px; bottom: 12px;
	padding: 4px 10px;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: var(--surface);
	font-family: var(--font-mono);
	font-size: 11.5px;
	color: var(--muted);
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.3s, color 0.2s;
}

.ai-demo.is-done .ai-demo__replay { opacity: 1; }
.ai-demo__replay:hover { color: var(--accent); }

/* Animation states (JS-driven) */
.js .ai-demo.is-ready .ai-demo__msg--bot { opacity: 0; transform: translateY(8px); transition: 0.5s var(--ease); }
.js .ai-demo.is-ready .ai-demo__msg--bot .ai-demo__text { display: none; }
.js .ai-demo.is-thinking .ai-demo__msg--bot { opacity: 1; transform: none; }
.js .ai-demo.is-thinking .ai-demo__thinking { display: inline-flex; }
.js .ai-demo.is-answered .ai-demo__msg--bot { opacity: 1; transform: none; }
.js .ai-demo.is-answered .ai-demo__msg--bot .ai-demo__text { display: block; animation: panel-in 0.5s var(--ease); }
.js .ai-demo.is-ready .ai-demo__signals li { opacity: 0; transform: scale(0.85); transition: 0.45s var(--spring); transition-delay: calc(var(--i) * 120ms); }
.js .ai-demo.is-done .ai-demo__signals li { opacity: 1; transform: none; }
.js .ai-demo.is-ready .ai-demo__why { opacity: 0; transition: opacity 0.4s; }
.js .ai-demo.is-done .ai-demo__why { opacity: 1; }
.ai-demo [data-ai-query].is-typing::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--accent); animation: blink 1s steps(1) infinite; }

/* Expanding pillars */
.pillars { display: flex; gap: 12px; min-height: 340px; }

.pillar {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 26px 24px;
	overflow: hidden;
	cursor: pointer;
	transition: flex-grow 0.7s var(--ease), border-color 0.3s, background-color 0.3s;
}

.pillar.is-open { flex-grow: 3.2; cursor: default; background: linear-gradient(160deg, color-mix(in oklab, var(--accent) 9%, transparent), var(--surface) 55%); border-color: color-mix(in oklab, var(--accent) 35%, transparent); }

.pillar__code {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(30px, 3.4vw, 46px);
	line-height: 1;
	letter-spacing: -0.04em;
	color: var(--muted);
	white-space: nowrap;
	transition: color 0.4s;
}

.pillar:not(.is-open) .pillar__code { writing-mode: vertical-rl; transform: rotate(180deg); align-self: flex-start; }
.pillar.is-open .pillar__code {
	background: var(--grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	filter: drop-shadow(0 0 20px color-mix(in oklab, var(--accent) 35%, transparent));
}

.pillar:not(.is-open):hover .pillar__code { color: var(--ink); }

.pillar__content { opacity: 0; transform: translateY(10px); transition: opacity 0.35s, transform 0.5s var(--ease); max-width: 560px; }
.pillar.is-open .pillar__content { opacity: 1; transform: none; transition-delay: 0.25s; }
.pillar:not(.is-open) .pillar__content { position: absolute; pointer-events: none; visibility: hidden; }

.pillar__num { display: block; margin-bottom: 8px; font-size: 12px; color: var(--accent); }
.pillar__title { font-size: clamp(20px, 2vw, 26px); letter-spacing: -0.03em; margin-bottom: 10px; }
.pillar__text { color: var(--ink-2); font-size: 15.5px; margin-bottom: 16px; }
.pillar__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pillar__tags li { padding: 5px 11px; border: 1px solid var(--border-strong); border-radius: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); }

/* Related reads */
.ai-reads { margin-top: 28px; }
.ai-reads .mini-title { margin-bottom: 10px; }
.ai-reads ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.ai-reads a {
	display: grid;
	grid-template-columns: 1fr auto auto;
	gap: 20px;
	align-items: center;
	padding: 18px 4px;
	border-bottom: 1px solid var(--border);
	text-decoration: none;
	transition: padding 0.4s var(--ease), color 0.2s;
}

.ai-reads a:hover { padding-left: 14px; color: var(--accent); }
.ai-reads__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(17px, 1.8vw, 21px); letter-spacing: -0.02em; }
.ai-reads__date { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }
.ai-reads a .icon { transition: transform 0.4s var(--ease); }
.ai-reads a:hover .icon { transform: rotate(-45deg); color: var(--accent); }

@media (max-width: 980px) {
	.ai__top { grid-template-columns: 1fr; }
	.pillars { flex-direction: column; min-height: 0; }
	.pillar { flex: none; }
	.pillar:not(.is-open) .pillar__code { writing-mode: horizontal-tb; transform: none; }
	.pillar:not(.is-open) { padding-block: 18px; }
}

@media (max-width: 640px) {
	.ai-reads a { grid-template-columns: 1fr auto; }
	.ai-reads__date { display: none; }
	.ai-demo__body { padding: 16px; }
}

.pillar__plus {
	position: absolute;
	left: 24px;
	bottom: 18px;
	display: grid;
	place-items: center;
	width: 30px; height: 30px;
	border: 1px solid var(--border-strong);
	border-radius: 50%;
	font-size: 18px;
	line-height: 1;
	color: var(--muted);
	transition: 0.3s;
}
.pillar.is-open .pillar__plus { opacity: 0; transform: rotate(45deg); }
.pillar:not(.is-open):hover .pillar__plus { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
@media (max-width: 980px) {
	.pillar__plus { left: auto; right: 20px; top: 50%; bottom: auto; transform: translateY(-50%); }
	.pillar.is-open .pillar__plus { display: none; }
}


/* ==========================================================================
   14. Background style (Customize → Design & Branding)
   ========================================================================== */
/* Clean grid: no colour clouds, just the grid and a cursor-following glow. */
.bg-grid .aurora,
.bg-grid .portrait__glow { display: none; }
.bg-grid .hero__grid-bg { -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 35%, #000 25%, transparent 80%); mask-image: radial-gradient(ellipse 90% 70% at 50% 35%, #000 25%, transparent 80%); }
.bg-grid .hero__spot { background: radial-gradient(520px circle at var(--hx, 70%) var(--hy, 40%), color-mix(in oklab, var(--accent) 7%, transparent), transparent 55%); }
.bg-grid .portrait__frame { box-shadow: 0 0 0 1px color-mix(in oklab, var(--accent) 22%, transparent), 0 40px 80px -40px rgba(0, 0, 0, 0.9); }
.bg-grid .contact__glow,
.bg-grid .site-footer__glow { display: none; }
.bg-grid .page-hero::before { opacity: 0.06; }
.bg-grid .ai-demo { box-shadow: 0 0 0 1px color-mix(in oklab, var(--accent) 18%, transparent), 0 30px 60px -40px rgba(0, 0, 0, 0.9); }

/* Subtle glow: same layout, faint colour. */
.bg-glow .aurora { opacity: calc(var(--aurora-opacity) * 0.35); }
.bg-glow .portrait__glow { opacity: 0.18; animation: none; }
.bg-glow .contact__glow { opacity: 0.12; }
.bg-glow .site-footer__glow { opacity: 0.07; }

/* ==========================================================================
   15. No glow — flat, crisp neon (overrides all glow effects)
   ========================================================================== */
:root { --glow: none; }
.grad-text,
.hero__name .grad-text,
.pillar.is-open .pillar__code { filter: none; }
.btn--grad,
.btn--grad:hover { box-shadow: none; }
.brand__mark,
.caret,
.filters__pill,
.xp__indicator,
.ai-demo__text mark,
.marquee li:hover,
.bar:hover .bar__fill { box-shadow: none; filter: none; }
.scroll-progress span { box-shadow: none; }
.hero__spot,
.aurora,
.portrait__glow,
.contact__glow,
.site-footer__glow,
.page-hero::before { display: none !important; }
.ai-demo { box-shadow: none; border-color: color-mix(in oklab, var(--accent) 22%, var(--border)); }
.project__link:hover .project__media { box-shadow: none; border-color: var(--accent); }
.portrait__frame { box-shadow: none !important; border-color: color-mix(in oklab, var(--accent) 30%, transparent); }
.orbit-chip { box-shadow: none; }
.stat::after { display: none; }
.pillar.is-open,
.tile--now { background: var(--surface); }
.btn--grad::after { display: none; }

/* Cards: replace the cursor spotlight with a crisp border highlight. */
.spot::before,
.spot::after { display: none; }
.spot { transition: border-color 0.3s; }
.spot:hover { border-color: color-mix(in oklab, var(--accent) 45%, transparent); }

/* Custom cursor without the soft fill. */
.cursor.is-hover .cursor__ring { background: transparent; }

/* ==========================================================================
   16. No gradients — solid neon accent everywhere
   ========================================================================== */
:root { --grad: var(--accent); }
.btn--grad,
.hero__name .grad-text { animation: none; background-size: auto; }
.section + .section::before { background: var(--border); }
.card__placeholder,
.post-card__placeholder { background: var(--surface-2); }
.cert__media .card__placeholder { background: #f1f4f2; color: #0b8f4a; }


/* ==========================================================================
   17. Navy & blue palette (matches Arina Cloud)
   ========================================================================== */
:root,
[data-theme="dark"] {
	--bg: #060b1a;
	--bg-2: #0a1124;
	--surface: rgba(20, 34, 70, 0.32);
	--surface-2: rgba(37, 58, 110, 0.32);
	--surface-solid: #0b1428;
	--border: rgba(96, 130, 210, 0.16);
	--border-strong: rgba(120, 155, 235, 0.28);
	--ink: #f3f6ff;
	--ink-2: #c3cde6;
	--muted: #8593b4;
	--header-bg: rgba(6, 11, 26, 0.78);
	--grid-line: rgba(90, 130, 230, 0.07);
	--on-accent: #ffffff;
	--accent-ink: color-mix(in oklab, var(--accent) 62%, white);
	--accent-soft: color-mix(in oklab, var(--accent) 18%, transparent);
	--live: #22c55e;
}

.glass { border-color: var(--border); }
.spot:hover,
.feature:hover, .edu:hover, .cert:hover, .tile:hover { border-color: color-mix(in oklab, var(--accent) 60%, transparent); }

/* Status dots stay green, like "99.98% Live". */
.badge__dot, .badge__dot::after, .live-dot, .live-dot::after { background: var(--live); }
.pill--live { color: #4ade80; border-color: rgba(34, 197, 94, 0.35); background: rgba(34, 197, 94, 0.08); }

/* Secondary cyan for small details. */
.eyebrow::before, .hero__hi::before, .brand__dot { color: var(--accent-2); }
.hero__hi { color: var(--ink-2); }
.eyebrow { color: var(--accent-ink); }

.btn--grad:hover { background: color-mix(in oklab, var(--accent) 88%, white); }
.cert__media .card__placeholder { background: #eef3ff; color: var(--accent); }
.feature__icon { color: var(--accent-ink); }

.tile--contact .tile__link { display: flex; width: max-content; margin-top: 10px; }
.tile--contact .tile__link:hover { color: var(--accent-ink); }


/* ==========================================================================
   18. About grid without the "Currently" tile
   ========================================================================== */
.bento { grid-auto-flow: row dense; }
.bento:not(:has(.tile--now)) .tile--langs { grid-column: span 2; }
.bento:not(:has(.tile--now)) .tile--langs .lang-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; }
@media (max-width: 1100px) {
	.bento:not(:has(.tile--now)) .tile--langs .lang-list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.bento:not(:has(.tile--now)) .tile--langs { grid-column: auto; }
}

/* ==========================================================================
   19. FAQ
   ========================================================================== */
.faq__layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq__head .section-head { position: sticky; top: calc(var(--header-h) + 32px); }
.faq__list { display: grid; gap: 10px; }
.faq__item { padding: 0; overflow: hidden; transition: border-color 0.3s; }
.faq__item[open] { border-color: color-mix(in oklab, var(--accent) 45%, transparent); }
.faq__q { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; cursor: pointer; list-style: none; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q h3 { margin: 0; font-size: clamp(16.5px, 1.6vw, 19px); letter-spacing: -0.015em; line-height: 1.35; }
.faq__icon { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border: 1px solid var(--border-strong); border-radius: 50%; font-size: 18px; line-height: 1; color: var(--muted); transition: transform 0.35s var(--ease), background 0.2s, color 0.2s, border-color 0.2s; }
.faq__item[open] .faq__icon { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.faq__q:hover .faq__icon { border-color: var(--accent); color: var(--ink); }
.faq__a { padding: 0 24px 22px; color: var(--ink-2); font-size: 16px; }
.faq__a p { margin: 0; }
.faq__item[open] .faq__a { animation: panel-in 0.4s var(--ease); }
@media (max-width: 900px) {
	.faq__layout { grid-template-columns: 1fr; }
	.faq__head .section-head { position: static; margin-bottom: 0; }
}
