/*
Theme Name: Page Strategist
Theme URI: https://pagestrategist.com/
Author: Page Strategist
Author URI: https://pagestrategist.com/
Description: Agency theme for Page Strategist (web design and SEO). Same paper and blueprint-grid design system as Scalyr Marketing and Asif Ahmed, with light and dark modes, service pages, team, work and an AJAX enquiry form.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: pagestrategist
*/

/* ===================================================================
   Tokens: Page Strategist brand (logo B / B2)
   Navy #1B2A7A + Growth Blue #4F63E8 on cool paper; Space Grotesk + Inter.
   =================================================================== */
:root {
	--paper: #f3f5fa;
	--paper-2: #e8ecf5;
	--card: #f9fafd;
	--card-hi: #ffffff;
	--ink: #0e1430;
	--ink-2: #2a3150;
	--ink-hover: #1b2a7a;
	--muted: #5a6180;
	--fg-rgb: 14, 20, 48;
	--bg-rgb: 243, 245, 250;
	--line: rgba(var(--fg-rgb), 0.11);
	--line-strong: rgba(var(--fg-rgb), 0.22);
	--shadow-rgb: 14, 20, 48;
	--brand: #1b2a7a;
	--brand-on: #ffffff;
	--brand-text: #1b2a7a;
	--accent: #4f63e8;
	--accent-text: #3d4fd4;
	--blue: #4f63e8;
	--green: #11a35a;
	--violet: #7448f0;
	--orange: #ff6a2b;
	--yellow: #f2b200;
	--pink: #e8467c;

	--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-serif: var(--font-display);
	--font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

	--frame: 1320px;
	--gutter: clamp(18px, 4vw, 40px);
	--radius: 14px;
	--header-h: 68px;
	--bar-h: 50px;
	--ease: cubic-bezier(0.2, 0.7, 0.1, 1);
	--shadow: 0 1px 0 rgba(var(--shadow-rgb), 0.04), 0 10px 30px -12px rgba(var(--shadow-rgb), 0.18);
	color-scheme: light;
}
html[data-theme="dark"] {
	--paper: #0a0e1f;
	--paper-2: #111731;
	--card: #10162c;
	--card-hi: #18203f;
	--ink: #eef0f7;
	--ink-2: #c5cae0;
	--ink-hover: #ffffff;
	--muted: #8d94b3;
	--fg-rgb: 238, 240, 247;
	--bg-rgb: 10, 14, 31;
	--line: rgba(var(--fg-rgb), 0.1);
	--line-strong: rgba(var(--fg-rgb), 0.2);
	--shadow-rgb: 0, 0, 0;
	--brand: #eef0f7;
	--brand-on: #1b2a7a;
	--brand-text: #eef0f7;
	--accent: #6b7cff;
	--blue: #6b7cff;
	--accent-text: #a9b4ff;
	color-scheme: dark;
}
html.theme-fade, html.theme-fade *, html.theme-fade *::before, html.theme-fade *::after {
	transition: background-color .45s ease, color .45s ease, border-color .45s ease, fill .45s ease !important;
}

/* ===================================================================
   Base
   =================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--bar-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}
body::before {
	content: "";
	position: fixed; inset: 0;
	pointer-events: none; z-index: -1;
	background-image:
		linear-gradient(to right, rgba(var(--fg-rgb), 0.035) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(var(--fg-rgb), 0.035) 1px, transparent 1px);
	background-size: 88px 88px;
	mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
	-webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; line-height: 1.05; letter-spacing: -0.03em; font-weight: 700; font-family: var(--font-display); }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 10px; top: 10px; position: fixed; z-index: 1000; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; }
.icon { width: 18px; height: 18px; flex: none; }

.mono { font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; line-height: 1.4; }
.muted { color: var(--muted); }
em { font-style: normal; }
.display em, .hero-title em, .page-title em, .more-title em, .about-note em {
	font-family: var(--font-display); font-style: normal; font-weight: 500; letter-spacing: inherit; color: var(--accent-text);
}
.frame { max-width: var(--frame); margin: 0 auto; padding: 0 var(--gutter); position: relative; }

.c-blue { --c: var(--blue); } .c-green { --c: var(--green); } .c-violet { --c: var(--violet); }
.c-orange { --c: var(--orange); } .c-yellow { --c: var(--yellow); } .c-pink { --c: var(--pink); }

/* Brand dot (shared with the Scalyr logo) */
.brand-dot { display: inline-block; width: .2em; height: .2em; border-radius: 50%; background: var(--accent); margin-left: .06em; vertical-align: baseline; }

/* ===================================================================
   Buttons
   =================================================================== */
.btn {
	display: inline-flex; align-items: center; gap: 10px;
	height: 50px; padding: 0 22px;
	border-radius: 999px; border: 1px solid var(--ink);
	font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
	text-decoration: none; white-space: nowrap; cursor: pointer;
	transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s, border-color .25s;
}
.btn .icon { width: 17px; height: 17px; transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn-dark { background: var(--ink); color: var(--paper); box-shadow: 0 10px 24px -12px rgba(var(--shadow-rgb), .55); }
.btn-dark:hover { transform: translateY(-2px); background: var(--ink-hover); }
.btn-light { background: var(--card); color: var(--ink); border-color: var(--line-strong); }
.btn-light:hover { transform: translateY(-2px); border-color: var(--ink); }
.btn-sm { height: 42px; padding: 0 18px; font-size: 11px; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ===================================================================
   Header
   =================================================================== */
/* Header, top bar, mega menu, mobile menu and scroll rail: assets/css/chrome.css */
.footer-cols .menu a {
	display: block; padding: 8px 12px; border-radius: 999px;
	font-size: 15px; font-weight: 500; text-decoration: none; color: var(--ink-2);
	transition: background .2s, color .2s;
}
/* Content makes room for the scroll rail on narrower desktops (see chrome.css) */
.frame { padding-right: var(--frame-pr, var(--gutter)); }

/* ===================================================================
   Hero
   =================================================================== */
.hero {
	position: relative;
	min-height: clamp(640px, calc(100svh - var(--header-h)), 1000px);
	display: grid; place-items: center;
	padding: 80px var(--gutter) 100px;
	overflow: hidden; isolation: isolate;
}
.hero-rings {
	position: absolute; left: 50%; top: 50%;
	width: min(1500px, 170vw); aspect-ratio: 1;
	transform: translate(-50%, -50%);
	z-index: -1; pointer-events: none;
}
.hero-rings svg { width: 100%; height: 100%; overflow: visible; }
.hero-rings circle { fill: none; stroke: rgba(var(--fg-rgb), .09); stroke-width: 1; }
.hero-rings circle.dash { stroke-dasharray: 3 9; stroke: rgba(var(--fg-rgb), .22); }
.hero::after {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: radial-gradient(closest-side at 50% 52%, var(--paper) 0%, var(--paper) 40%, rgba(var(--bg-rgb), 0) 100%);
}
.hero-inner { max-width: 1120px; text-align: center; display: flex; flex-direction: column; align-items: center; }

.eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 7px 14px 7px 12px; margin: 0 0 30px;
	border: 1px solid var(--line-strong); border-radius: 999px;
	background: rgba(var(--bg-rgb), .8);
	font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); position: relative; }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--green); animation: pulse 2s ease-out infinite; }
@keyframes pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

.hero-name {
	font-family: var(--font-display); font-weight: 700;
	font-size: clamp(44px, 9vw, 128px);
	line-height: .95; letter-spacing: .02em;
	margin: 0 -0.02em 22px 0;
	display: flex; flex-wrap: wrap; justify-content: center; column-gap: .55em;
}
.hero-word { white-space: nowrap; font-weight: inherit; }
.hero-word > .hero-sp { width: 0; overflow: hidden; }
.hero-word > span {
	display: inline-block;
	animation: letter-drop 1s cubic-bezier(.22, 1.35, .36, 1) calc(.2s + var(--k, 0) * .07s) both;
}
.hero-name .brand-dot { width: .15em; height: .15em; margin-left: -0.12em; animation: dot-pop .7s cubic-bezier(.2, 1.6, .4, 1) .95s both; }
@keyframes letter-drop {
	0% { opacity: 0; transform: translateY(-.6em) rotate(-16deg) scale(.6); filter: blur(12px); }
	55% { opacity: 1; filter: blur(0); }
	100% { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes dot-pop { from { transform: scale(0); } }
.hero-role { color: var(--muted); margin: 0 0 22px; }
.hero-title { font-size: clamp(30px, 4.4vw, 58px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.04; margin: 0 0 20px; }
.hero-title em { font-size: 1.08em; }
.hero-lead { max-width: 640px; font-size: clamp(16.5px, 1.6vw, 19px); color: var(--ink-2); margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 40px 0 0; }
.hero-stats div { padding: 12px 20px; border: 1px solid var(--line); border-radius: 14px; background: rgba(var(--bg-rgb), .75); text-align: left; min-width: 150px; }
.hero-stats dt { font-size: 28px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.hero-stats dd { margin: 2px 0 0; color: var(--muted); font-size: 10.5px; }

.hero-in { animation: intro-up 1s cubic-bezier(.2, .7, .2, 1) var(--d, 0s) both; }
@keyframes intro-up { from { opacity: 0; transform: translateY(28px); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }

.hero-chips { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.chip { position: absolute; left: 50%; top: 50%; visibility: hidden; will-change: transform; }
.is-orbiting .chip { visibility: visible; }
.chip-in {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 7px 15px 7px 7px;
	background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
	font-size: 14px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap;
	animation: chip-pop .9s cubic-bezier(.2, 1.5, .4, 1) calc(1s + var(--i, 0) * .09s) both;
}
@keyframes chip-pop { from { opacity: 0; transform: scale(.3); } }
.chip-ico { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--c); color: #fff; }
@media (max-width: 760px) { .hero-chips { display: none; } .hero { padding-top: 56px; } }

/* ===================================================================
   Marquee
   =================================================================== */
.marquee { border-block: 1px solid var(--line-strong); background: var(--paper-2); overflow: hidden; padding: 18px 0; }
.marquee-track { display: flex; align-items: center; gap: 34px; width: max-content; animation: marquee 40s linear infinite; }
.marquee span { font-size: clamp(26px, 3.4vw, 44px); font-weight: 700; letter-spacing: -0.03em; white-space: nowrap; }
.marquee span.outline { font-family: var(--font-display); font-style: normal; font-weight: 500; color: transparent; -webkit-text-stroke: 1px var(--ink); letter-spacing: 0; }
.marquee i { font-style: normal; color: var(--accent-text); font-size: 22px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===================================================================
   Sections
   =================================================================== */
.section { padding: 0 0 clamp(80px, 10vw, 140px); }
.section .frame { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.section-bar {
	position: sticky; top: calc(var(--header-h) - 1px); z-index: 30;
	display: flex; justify-content: space-between; align-items: center; gap: 20px;
	height: var(--bar-h);
	margin: 0 calc(var(--frame-pr, var(--gutter)) * -1) clamp(44px, 6vw, 80px) calc(var(--gutter) * -1);
	padding: 0 var(--frame-pr, var(--gutter)) 0 var(--gutter);
	border-block: 1px solid var(--line);
	background: rgba(var(--bg-rgb), .72);
	backdrop-filter: saturate(150%) blur(12px); -webkit-backdrop-filter: saturate(150%) blur(12px);
}
.admin-bar .section-bar { top: calc(var(--header-h) + 31px); }
.section-bar b { color: var(--accent-text); font-weight: 600; }
.section-bar > .mono:first-child { transition: color .3s; }
.section-bar.is-stuck { border-top-color: transparent; }
.section-bar.is-stuck > .mono:first-child { color: var(--accent-text); }
.display { font-size: clamp(34px, 4.6vw, 64px); letter-spacing: -0.035em; line-height: 1.04; }
.display em { font-size: 1.06em; }
.section-title { max-width: 900px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head .section-title { margin: 0; }
.section-head p { max-width: 380px; margin: 0; }
.center-actions { display: flex; justify-content: center; margin-top: 44px; }

[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.about-copy { font-size: 18.5px; color: var(--ink-2); }
.about-note a { display: inline-block; text-decoration: none; padding: 12px 18px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--card); font-size: 16px; transition: border-color .2s; }
.about-note a:hover { border-color: var(--ink); }
.about-note em { font-size: 1.15em; }
.about-note .icon { display: inline-block; width: 15px; height: 15px; vertical-align: -2px; margin-left: 4px; }

.socials { display: flex; gap: 8px; }
.socials-row a {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 8px 14px 8px 10px; border: 1px solid var(--line-strong); border-radius: 999px;
	font-size: 14px; font-weight: 500; text-decoration: none; background: var(--card); transition: border-color .2s, transform .2s;
}
.socials-row a:hover { border-color: var(--ink); transform: translateY(-2px); }
.socials-row { flex-wrap: wrap; margin-top: 8px; }

/* Stack */
.stack-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stack-card { padding: clamp(24px, 3.4vw, 38px); background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.stack-ico { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--c); color: #fff; margin-bottom: 26px; }
.stack-ico .icon { width: 22px; height: 22px; }
.stack-card h3 { font-size: 28px; margin-bottom: 10px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { padding: 7px 13px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14.5px; font-weight: 500; background: var(--paper); }
.principles { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 18px; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: var(--card); }
.principles li { padding: 22px 22px 24px; border-left: 1px solid var(--line); display: grid; gap: 30px; }
.principles li:first-child { border-left: 0; }
.principles .mono { color: var(--accent-text); }
.principles strong { font-size: 19px; letter-spacing: -0.02em; }

/* Projects */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.filters button {
	display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
	padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--card);
	font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
	transition: background .2s, color .2s, border-color .2s;
}
.filters button i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.filters sup { font-size: 9.5px; opacity: .6; }
.filters button:hover { border-color: var(--ink); }
.filters button.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.project.is-hidden { display: none; }
.project-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.project-link:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -24px rgba(var(--shadow-rgb), .35); border-color: var(--line-strong); }
.project-cover { position: relative; aspect-ratio: 3 / 2; background: color-mix(in srgb, var(--c) 12%, var(--paper-2)); overflow: hidden; border-bottom: 1px solid var(--line); }
.project-cover > img { width: 100%; height: calc(100% - 34px); object-fit: cover; object-position: top; }
.browser { height: 34px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: rgba(var(--bg-rgb), .7); border-bottom: 1px solid var(--line); }
.browser i { width: 9px; height: 9px; border-radius: 50%; background: rgba(var(--fg-rgb), .18); }
.browser span { margin-left: 10px; flex: 1; max-width: 70%; padding: 3px 10px; border-radius: 6px; background: rgba(var(--fg-rgb), .06); font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.project-type-art {
	position: absolute; inset: 34px 0 0;
	display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 10px;
	padding: 22px;
	background:
		radial-gradient(circle at 85% 20%, color-mix(in srgb, var(--c) 42%, transparent) 0 18%, transparent 19%),
		linear-gradient(to right, rgba(var(--fg-rgb), .05) 1px, transparent 1px) 0 0 / 28px 28px,
		linear-gradient(to bottom, rgba(var(--fg-rgb), .05) 1px, transparent 1px) 0 0 / 28px 28px;
	transition: transform .6s var(--ease);
}
.project-link:hover .project-type-art { transform: scale(1.03); }
.project-type-art strong { font-size: clamp(22px, 2.3vw, 30px); letter-spacing: -0.03em; line-height: 1.05; word-break: break-word; }
.project-type-art .mono { font-size: 10px; color: var(--ink-2); background: rgba(var(--bg-rgb), .75); padding: 4px 8px; border-radius: 6px; }
.project-body { padding: 18px 20px 22px; display: grid; gap: 10px; align-content: start; }
.project-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.project-head h3 { font-size: 20px; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.project-go { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); transition: background .25s, color .25s, transform .25s var(--ease); }
.project-link:hover .project-go { background: var(--ink); color: var(--paper); transform: rotate(45deg); }
.project-go .icon { width: 15px; height: 15px; }
.tag { display: inline-flex; align-items: center; gap: 7px; justify-self: start; font-size: 10.5px; color: var(--ink-2); }
.tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.project-body p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.55; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { padding: 26px 24px 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); }
.step .mono { color: var(--accent-text); }
.step h3 { font-size: 24px; margin: 46px 0 10px; }
.step p { margin: 0; font-size: 15.5px; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.contact-intro .display { margin-bottom: 20px; }
.contact-list { display: grid; gap: 12px; margin: 26px 0 24px; }
.contact-list li { display: flex; align-items: center; gap: 12px; font-size: 18px; }
.contact-list .icon { color: var(--accent-text); }
.contact-list a { text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.contact-list a:hover { border-color: var(--ink); }
.contact-card { padding: clamp(22px, 3.4vw, 36px); background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }

.contact-form { display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.field input, .field select, .field textarea {
	width: 100%; padding: 13px 15px;
	border: 1px solid var(--line-strong); border-radius: 12px;
	background: var(--paper); font-size: 16px;
	transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .8; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--card-hi); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.field.has-error input, .field.has-error textarea { border-color: var(--pink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-status { margin: 0; }
.form-status.is-error { color: var(--pink); }
.form-done { text-align: center; padding: 40px 10px; }
.form-done .done-ico { width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; }
.form-done h3 { font-size: 28px; margin-bottom: 10px; }

/* ===================================================================
   Inner pages
   =================================================================== */
.page-hero { padding: clamp(60px, 9vw, 120px) 0 clamp(40px, 6vw, 70px); }
.page-hero .frame { max-width: var(--frame); }
.page-hero a { text-decoration: none; }
.page-hero a:hover { color: var(--ink); }
.page-title { font-size: clamp(42px, 7vw, 100px); letter-spacing: -0.04em; line-height: 1; margin: 16px 0 20px; overflow-wrap: anywhere; }
.page-lead { max-width: 640px; font-size: 19px; color: var(--ink-2); }
.project-hero .page-title { font-size: clamp(38px, 6.4vw, 90px); }
.project-detail { display: grid; grid-template-columns: 1.7fr 1fr; gap: 24px; align-items: start; margin-bottom: 50px; }
.project-cover-lg { border: 1px solid var(--line); border-radius: 22px; }
.project-cover-lg .project-type-art strong { font-size: clamp(30px, 4vw, 56px); }
.project-facts { display: grid; gap: 22px; padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); }
.project-facts p { margin: 0 0 6px; }
.project-facts a { color: var(--accent-text); }
.more-title { font-size: clamp(30px, 3.6vw, 46px); margin: 70px 0 28px; }

.narrow { max-width: 760px; }
.entry-content { font-size: 18px; color: var(--ink-2); }
.entry-content h2 { font-size: 34px; margin: 1.6em 0 .5em; color: var(--ink); }
.entry-content h3 { font-size: 25px; margin: 1.4em 0 .5em; color: var(--ink); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; margin: 0 0 1em; list-style: revert; }
.entry-content a { color: var(--accent-text); }
.entry-content img { border-radius: 14px; }
.single-thumb { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 22px; margin-bottom: 40px; }
.single-thumb img { width: 100%; height: 100%; object-fit: cover; }

.post-list { display: grid; }
.post-row a { display: grid; gap: 8px; padding: 28px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.post-row h2 { font-size: clamp(24px, 3vw, 36px); transition: color .2s; }
.post-row a:hover h2 { color: var(--accent-text); }
.post-row p { margin: 0; }
.pagination .nav-links { display: flex; gap: 8px; margin-top: 30px; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 8px; text-decoration: none; font-family: var(--font-mono); font-size: 12px; }
.pagination .current { background: var(--ink); color: var(--paper); }
.page-404 { min-height: 60vh; display: grid; align-items: center; }

/* ===================================================================
   Footer
   =================================================================== */
.site-footer { border-top: 1px solid var(--line-strong); background: var(--paper-2); padding: clamp(56px, 7vw, 90px) 0 0; overflow: hidden; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-mail { display: inline-flex; align-items: center; gap: 12px; font-size: clamp(26px, 4vw, 52px); font-weight: 700; letter-spacing: -0.035em; text-decoration: none; border-bottom: 2px solid var(--line-strong); padding-bottom: 4px; transition: border-color .2s, color .2s; overflow-wrap: anywhere; }
.footer-mail:hover { border-color: var(--accent); color: var(--accent-text); }
.footer-mail .icon { width: .8em; height: .8em; }
.footer-cols { display: flex; gap: clamp(30px, 6vw, 80px); }
.footer-cols .menu a { padding: 4px 0; font-size: 16px; }
.footer-cols .menu a:hover { color: var(--accent-text); }
.socials-list { flex-direction: column; gap: 0; }
.socials-list a { display: inline-flex; align-items: center; gap: 8px; padding: 4px 0; text-decoration: none; color: var(--ink-2); }
.socials-list a:hover { color: var(--accent-text); }
.socials-list .icon { width: 16px; height: 16px; }
.footer-giant {
	font-family: var(--font-mono); font-weight: 500;
	font-size: clamp(44px, 12.6vw, 176px); line-height: .9; letter-spacing: .02em;
	white-space: nowrap; text-align: center;
	margin: clamp(50px, 8vw, 100px) 0 0;
	color: transparent; -webkit-text-stroke: 1px rgba(var(--fg-rgb), .35);
	user-select: none;
}
.footer-giant .brand-dot { width: .13em; height: .13em; margin-left: -0.1em; opacity: .85; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: 22px 0 28px; margin-top: 26px; border-top: 1px solid var(--line); color: var(--muted); }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--ink); }

/* ===================================================================
   Responsive
   =================================================================== */
@media (max-width: 1080px) {
	.project-grid { grid-template-columns: repeat(2, 1fr); }
	.steps { grid-template-columns: repeat(2, 1fr); }
	.principles { grid-template-columns: repeat(3, 1fr); }
	.principles li:nth-child(4) { border-left: 0; }
	.principles li:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 860px) {
	.about-grid, .contact-grid, .stack-grid, .project-detail { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	body { font-size: 16px; }
	.project-grid, .steps, .field-row { grid-template-columns: 1fr; }
	.principles { grid-template-columns: 1fr 1fr; }
	.principles li { border-left: 0 !important; border-top: 1px solid var(--line); gap: 14px; }
	.principles li:nth-child(-n+2) { border-top: 0; }
	.principles li:nth-child(even) { border-left: 1px solid var(--line) !important; }
	.hero-stats div { min-width: 0; flex: 1 1 40%; padding: 10px 14px; }
	.hero-stats dt { font-size: 22px; }
	.section-bar .mono.muted { display: none; }
	.hero-name { letter-spacing: .01em; margin-right: -0.01em; }
	.wordmark { font-size: 17px; }
	.footer-bottom { flex-direction: column; }
	.step h3 { margin-top: 26px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.hero-word > span, .hero-in, .chip-in, .hero-name .brand-dot, .marquee-track, .pulse::after { animation: none; }
	[data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* Brand fonts on display type */
.display, .hero-title, .page-title, .footer-giant, .footer-mail, .btn, .stat-row dt, .hero-stats dt { font-family: var(--font-display); }
