/**
 * Cairo Console — design system
 * Dark default · mashrabiya motif · editor chrome
 */

/* ── Tokens ─────────────────────────────────────────────────── */
:root,
[data-theme="dark"] {
	--bg: #14171C;
	--panel: #1C2129;
	--accent-gold: #C9A227;
	--accent-teal: #2DA8A0;
	--text-primary: #EDEFF2;
	--text-muted: #8B93A1;
	--border: #2A2F38;
	--dot-red: #E06B6B;
	--dot-amber: #D4A017;
	--dot-green: #5CB85C;
	--shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
	--font-display: 'Space Grotesk', system-ui, sans-serif;
	--font-body: 'Inter', system-ui, sans-serif;
	--font-mono: 'IBM Plex Mono', 'Consolas', monospace;
	--header-h: 52px;
	--radius: 8px;
	--mashrabiya-color: #2DA8A0;
	--syntax-violet: #9D8FE0;
}

[data-theme="light"] {
	--bg: #F4F2EC;
	--panel: #FFFFFF;
	--accent-gold: #C9A227;
	--accent-teal: #2DA8A0;
	--text-primary: #14171C;
	--text-muted: #5F5E5A;
	--border: #D3D1C7;
	--shadow: 0 8px 28px rgba(20, 23, 28, 0.08);
	--mashrabiya-color: #D3D1C7;
}

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

html {
	scroll-behavior: smooth;
	overflow-x: clip;
}

body.cairo-console {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.65;
	color: var(--text-primary);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

.mono { font-family: var(--font-mono); font-size: 0.8125rem; }
.cc-muted { color: var(--text-muted); }

a { color: var(--accent-teal); }
a:hover { color: var(--accent-gold); }

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

.cc-page-wrap { min-height: calc(100vh - var(--header-h)); }

/* ── Window chrome (shared) ─────────────────────────────────── */
.cc-dot {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	flex-shrink: 0;
	transition: opacity 0.18s ease;
}
.cc-dot--red { background: var(--dot-red); opacity: 0.75; }
.cc-dot--amber { background: var(--dot-amber); opacity: 0.75; }
.cc-dot--green { background: var(--dot-green); opacity: 0.75; }

.cc-window {
	background: var(--panel);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
}

.cc-window__chrome {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 12px;
	background: var(--bg);
	border-bottom: 1px solid var(--border);
	min-height: 36px;
}

.cc-window__label,
.cc-window__filename {
	font-family: var(--font-mono);
	font-size: 0.6875rem;
	color: var(--text-muted);
	margin-left: auto;
	text-transform: lowercase;
}
.cc-window__filename { margin-left: 8px; opacity: 0.7; }

/* ── Header / tab bar ───────────────────────────────────────── */
.cc-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--panel);
	border-bottom: 1px solid var(--border);
}

.cc-header__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1rem;
	display: flex;
	align-items: center;
	gap: 1rem;
	min-height: var(--header-h);
	position: relative;
}

.cc-header__brand {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	text-decoration: none;
	color: var(--text-primary);
	font-family: var(--font-mono);
	font-size: 0.8125rem;
	flex-shrink: 0;
}

.cc-header__monogram {
	color: var(--accent-gold);
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: -0.02em;
	flex-shrink: 0;
}

.cc-header__brand-text {
	font-size: 0.95rem;
}

.cc-tabbar {
	display: flex;
	align-items: stretch;
	flex: 1;
	justify-content: flex-end;
	gap: 2px;
}

.cc-tabbar__tabs {
	display: flex;
	align-items: stretch;
	gap: 2px;
	flex-wrap: wrap;
}

.cc-tab {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0 14px;
	min-height: 36px;
	font-family: var(--font-mono);
	font-size: 0.75rem;
	color: var(--text-muted);
	text-decoration: none;
	background: var(--bg);
	border: 1px solid transparent;
	border-bottom: none;
	border-radius: var(--radius) var(--radius) 0 0;
	transition: background 0.15s, color 0.15s;
}

.cc-tab:hover {
	color: var(--text-primary);
	background: var(--panel);
}

.cc-tab.is-active {
	color: var(--text-primary);
	background: var(--bg);
	border-color: var(--border);
	position: relative;
}

.cc-tab.is-active::after {
	content: '';
	position: absolute;
	bottom: -1px;
	left: 0;
	right: 0;
	height: 2px;
	background: var(--bg);
}

.cc-tab__dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
}
.cc-tab__dot--gold { background: var(--accent-gold); }
.cc-tab__dot--teal { background: var(--accent-teal); }

/* Theme toggle */
.cc-theme-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin-left: 8px;
	padding: 0;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--bg);
	color: var(--text-muted);
	cursor: pointer;
	transition: color 0.15s, border-color 0.15s;
	flex-shrink: 0;
}

.cc-theme-toggle:hover {
	color: var(--accent-gold);
	border-color: var(--accent-gold);
}

[data-theme="dark"] .cc-theme-toggle__sun { display: none; }
[data-theme="light"] .cc-theme-toggle__moon { display: none; }

/* Mobile nav */
.cc-mobile-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--bg);
	cursor: pointer;
	margin-left: auto;
}

.cc-mobile-toggle span {
	display: block;
	width: 18px;
	height: 2px;
	background: var(--text-primary);
	margin: 0 auto;
	border-radius: 1px;
}

@media (max-width: 600px) {
	.cc-mobile-toggle { display: flex; }

	.cc-tabbar {
		position: absolute;
		top: var(--header-h);
		left: 0;
		right: 0;
		flex-direction: column;
		background: var(--panel);
		border-bottom: 1px solid var(--border);
		padding: 0.75rem;
		display: none;
	}

	.cc-tabbar.is-open { display: flex; }

	.cc-tabbar__tabs {
		flex-direction: column;
		width: 100%;
	}

	.cc-tab {
		border-radius: var(--radius);
		border: 1px solid var(--border);
		width: 100%;
	}

	.cc-tab.is-active::after { display: none; }

	.cc-theme-toggle {
		margin: 0.5rem 0 0;
		width: 100%;
		height: 40px;
	}
}

/* ── Hero + mashrabiya ──────────────────────────────────────── */
.cc-hero {
	position: relative;
	padding: 3rem 1.25rem 4rem;
	overflow: hidden;
}

.cc-hero__mashrabiya {
	position: absolute;
	inset: 0;
	opacity: 0.07;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%232DA8A0' stroke-width='0.6'%3E%3Cpath d='M40 4 L46 16 L58 16 L48 24 L52 36 L40 30 L28 36 L32 24 L22 16 L34 16 Z'/%3E%3Cpath d='M40 44 L46 56 L58 56 L48 64 L52 76 L40 70 L28 76 L32 64 L22 56 L34 56 Z'/%3E%3Cpath d='M4 40 L16 34 L16 22 L24 32 L36 28 L30 40 L36 52 L24 48 L16 58 L16 46 Z'/%3E%3Cpath d='M76 40 L64 34 L64 22 L56 32 L44 28 L50 40 L44 52 L56 48 L64 58 L64 46 Z'/%3E%3Ccircle cx='40' cy='40' r='6'/%3E%3C/g%3E%3C/svg%3E");
	background-size: 80px 80px;
	pointer-events: none;
}

[data-theme="light"] .cc-hero__mashrabiya {
	opacity: 0.12;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%232A2F38' stroke-width='0.6'%3E%3Cpath d='M40 4 L46 16 L58 16 L48 24 L52 36 L40 30 L28 36 L32 24 L22 16 L34 16 Z'/%3E%3Cpath d='M40 44 L46 56 L58 56 L48 64 L52 76 L40 70 L28 76 L32 64 L22 56 L34 56 Z'/%3E%3Cpath d='M4 40 L16 34 L16 22 L24 32 L36 28 L30 40 L36 52 L24 48 L16 58 L16 46 Z'/%3E%3Cpath d='M76 40 L64 34 L64 22 L56 32 L44 28 L50 40 L44 52 L56 48 L64 58 L64 46 Z'/%3E%3Ccircle cx='40' cy='40' r='6'/%3E%3C/g%3E%3C/svg%3E");
}

.cc-hero__grid {
	position: relative;
	z-index: 1;
	max-width: 1100px;
	margin: 0 auto;
	display: grid;
	gap: 2.5rem;
	align-items: center;
	width: 100%;
	min-width: 0;
}

.cc-hero__content {
	min-width: 0;
}

.cc-hero__photo-frame {
	width: 100%;
	max-width: 320px;
	margin: 0 auto;
	min-width: 0;
}

@media (min-width: 768px) {
	.cc-hero__grid {
		grid-template-columns: 1fr minmax(260px, 320px);
		gap: 3rem;
	}
}

.cc-hero__eyebrow {
	color: var(--accent-teal);
	margin: 0 0 0.75rem;
}

.cc-hero__title {
	font-family: var(--font-display);
	font-size: clamp(1.75rem, 5vw, 2.75rem);
	font-weight: 700;
	line-height: 1.12;
	margin: 0 0 0.75rem;
	letter-spacing: -0.02em;
}

.cc-hero__tagline {
	margin: 0 0 1.25rem;
	min-height: 1.75rem;
}

/* Typing animation */
.cc-typewriter {
	display: inline-block;
	overflow: hidden;
	white-space: nowrap;
	border-right: 2px solid var(--accent-gold);
	width: 0;
	max-width: fit-content;
	animation: cc-type 3s steps(38, end) 0.4s forwards, cc-blink 0.7s step-end 3.4s infinite;
	color: var(--accent-gold);
	font-family: var(--font-mono);
	font-size: 0.9375rem;
}

@keyframes cc-type {
	to { width: 38ch; }
}

@keyframes cc-blink {
	50% { border-color: transparent; }
}

@media (prefers-reduced-motion: reduce) {
	.cc-typewriter {
		width: auto;
		border-right: none;
		animation: none;
	}
}

.cc-hero__bio {
	color: var(--text-muted);
	margin: 0 0 1.75rem;
	max-width: 36rem;
	font-size: 1.0625rem;
}

.cc-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.cc-hero__photo {
	width: 100%;
	aspect-ratio: 4/5;
	object-fit: cover;
}

/* ── Buttons ────────────────────────────────────────────────── */
.cc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.625rem 1.25rem;
	font-family: var(--font-mono);
	font-size: 0.8125rem;
	font-weight: 500;
	text-decoration: none;
	border-radius: var(--radius);
	border: 1px solid transparent;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}

.cc-btn--primary {
	background: var(--accent-gold);
	color: #14171C;
	border-color: var(--accent-gold);
}
.cc-btn--primary:hover {
	background: #b8921f;
	color: #14171C;
}

.cc-btn--outline {
	background: transparent;
	color: var(--accent-teal);
	border-color: var(--accent-teal);
}
.cc-btn--outline:hover {
	background: rgba(45, 168, 160, 0.1);
	color: var(--accent-teal);
}

.cc-btn--ghost {
	background: var(--bg);
	color: var(--text-muted);
	border-color: var(--border);
}
.cc-btn--ghost:hover { color: var(--text-primary); }

.cc-btn--lg { padding: 0.875rem 1.75rem; font-size: 0.875rem; }

/* ── Sections ───────────────────────────────────────────────── */
.cc-main {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 1.25rem 3rem;
}

.cc-section {
	padding: 3.5rem 0;
}

.cc-section--panel {
	background: var(--panel);
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
	margin: 0 -1.25rem;
	padding-left: 1.25rem;
	padding-right: 1.25rem;
}

.cc-section__head {
	margin-bottom: 2rem;
}

.cc-section__title {
	font-family: var(--font-display);
	font-size: clamp(1.375rem, 3vw, 1.75rem);
	font-weight: 700;
	margin: 0 0 0.25rem;
}

.cc-section__sub {
	margin: 0;
	color: var(--text-muted);
}

.cc-section__cta {
	margin-top: 2rem;
	text-align: center;
}

/* Skills */
.cc-skills {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

@media (min-width: 500px) {
	.cc-skills { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
	.cc-skills { grid-template-columns: repeat(4, 1fr); }
}

.cc-panel {
	background: var(--panel);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1.25rem;
}

.cc-panel h3 {
	font-family: var(--font-display);
	font-size: 0.9375rem;
	margin: 0 0 0.5rem;
	color: var(--accent-gold);
}

.cc-panel p {
	margin: 0;
	font-size: 0.875rem;
	color: var(--text-muted);
	line-height: 1.55;
}

/* Timeline */
.cc-timeline {
	display: grid;
	gap: 1rem;
}

.cc-timeline__item {
	background: var(--panel);
	border: 1px solid var(--border);
	border-left: 3px solid var(--accent-teal);
	border-radius: var(--radius);
	padding: 1.25rem 1.5rem;
}

.cc-timeline__item time {
	display: block;
	color: var(--accent-gold);
	margin-bottom: 0.35rem;
}

.cc-timeline__item h3 {
	font-family: var(--font-display);
	font-size: 1.0625rem;
	margin: 0 0 0.25rem;
}

.cc-timeline__item p {
	margin: 0.35rem 0 0;
	color: var(--text-muted);
	font-size: 0.9375rem;
}

/* CTA */
.cc-cta {
	text-align: center;
	padding: 3rem 1.5rem;
	background: var(--panel);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	margin-bottom: 2rem;
}

.cc-cta p {
	color: var(--text-muted);
	margin: 0 0 1.25rem;
}

.cc-cta .cc-php-var-label {
	margin-bottom: 0.75rem;
}

.cc-cta .cc-php-comment {
	margin: 0 0 1.25rem;
	opacity: 0.55;
}

/* ── Project cards ──────────────────────────────────────────── */
.cc-projects-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

@media (min-width: 640px) {
	.cc-projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
	.cc-projects-grid { grid-template-columns: repeat(3, 1fr); }
}

.cc-project-card {
	list-style: none;
}

@media (prefers-reduced-motion: no-preference) {
	.cc-project-card:hover .cc-dot {
		opacity: 1;
	}
}

.cc-project-card__thumb-link {
	display: block;
	aspect-ratio: 16/10;
	overflow: hidden;
	background: var(--bg);
}

.cc-project-card__thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cc-project-card__thumb-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	min-height: 140px;
	color: var(--text-muted);
}

.cc-project-card__content {
	padding: 1.15rem 1.25rem 1.25rem;
}

.cc-project-card__title {
	font-family: var(--font-display);
	font-size: 1rem;
	font-weight: 600;
	margin: 0 0 0.5rem;
	line-height: 1.35;
}

.cc-project-card__title a {
	color: var(--text-primary);
	text-decoration: none;
}
.cc-project-card__title a:hover { color: var(--accent-gold); }

.cc-project-card__summary {
	font-size: 0.875rem;
	color: var(--text-muted);
	margin: 0 0 1rem;
	line-height: 1.55;
}

.cc-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
	margin-bottom: 1rem;
}

.cc-tag {
	font-family: var(--font-mono);
	font-size: 0.6875rem;
	padding: 0.2rem 0.5rem;
	border-radius: 4px;
	border: 1px solid transparent;
}

/* Syntax-highlight tag roles */
.cc-tag--str {
	color: var(--accent-teal);
	background: rgba(45, 168, 160, 0.1);
	border-color: rgba(45, 168, 160, 0.22);
}

.cc-tag--kw {
	color: var(--accent-gold);
	background: rgba(201, 162, 39, 0.1);
	border-color: rgba(201, 162, 39, 0.22);
}

.cc-tag--var {
	color: var(--syntax-violet);
	background: rgba(157, 143, 224, 0.1);
	border-color: rgba(157, 143, 224, 0.22);
}

.cc-tag--cmt {
	color: var(--text-muted);
	background: var(--bg);
	border-color: var(--border);
}

.cc-project-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

/* ── Archive / single ───────────────────────────────────────── */
.cc-archive-head {
	padding: 2.5rem 0 1.5rem;
}

.cc-archive-head__title {
	font-family: var(--font-display);
	font-size: clamp(1.5rem, 4vw, 2.25rem);
	margin: 0 0 0.5rem;
}

.cc-archive-head__desc {
	color: var(--text-muted);
	margin: 0 0 0.5rem;
}

.cc-archive-head__path {
	color: var(--accent-teal);
	margin: 0;
}

.cc-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 2rem;
}

.cc-filter__link {
	padding: 0.35rem 0.75rem;
	border: 1px solid var(--border);
	border-radius: 4px;
	color: var(--text-muted);
	text-decoration: none;
	font-size: 0.75rem;
	transition: all 0.15s;
}

.cc-filter__link:hover,
.cc-filter__link.is-active {
	color: var(--text-primary);
	border-color: var(--accent-gold);
	background: rgba(201, 162, 39, 0.1);
}

.cc-back {
	display: inline-block;
	margin: 1.5rem 0;
	color: var(--text-muted);
	text-decoration: none;
	font-size: 0.8125rem;
}
.cc-back:hover { color: var(--accent-teal); }

.cc-single-title {
	font-family: var(--font-display);
	font-size: clamp(1.5rem, 4vw, 2rem);
	margin: 0 0 1rem;
}

.cc-single-featured {
	border-radius: var(--radius);
	overflow: hidden;
	margin-bottom: 1.5rem;
	border: 1px solid var(--border);
}

.cc-single-featured img { width: 100%; }

.cc-single-body { padding: 1.5rem; }

.cc-single-content {
	color: var(--text-muted);
	line-height: 1.75;
	font-size: 1rem;
}

.cc-single-content h2,
.cc-single-content h3 {
	color: var(--text-primary);
	font-family: var(--font-display);
}

.cc-empty,
.cc-pagination {
	color: var(--text-muted);
	padding: 2rem 0;
}

/* ── Terminal footer ────────────────────────────────────────── */
.cc-terminal {
	max-width: 1100px;
	margin: 0 auto 2rem;
	padding: 0 1.25rem;
}

.cc-terminal__chrome {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 12px;
	background: var(--panel);
	border: 1px solid var(--border);
	border-bottom: none;
	border-radius: var(--radius) var(--radius) 0 0;
}

.cc-terminal__title {
	font-family: var(--font-mono);
	font-size: 0.6875rem;
	color: var(--text-muted);
	margin-left: auto;
}

.cc-terminal__body {
	font-family: var(--font-mono);
	font-size: 0.8125rem;
	background: var(--panel);
	border: 1px solid var(--border);
	border-radius: 0 0 var(--radius) var(--radius);
	padding: 1.25rem 1.5rem;
	line-height: 1.7;
}

.cc-terminal__line {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 0.35rem;
}

.cc-terminal__prompt {
	color: var(--accent-teal);
}

.cc-terminal__cmd {
	color: var(--text-primary);
}

.cc-terminal__output {
	color: var(--accent-gold);
	padding-left: 1rem;
	margin-bottom: 0.75rem;
}

.cc-terminal__json {
	margin: 0 0 1rem;
	padding: 0.75rem 1rem;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow-x: auto;
	color: var(--text-muted);
	font-size: 0.75rem;
}

.cc-terminal__json code { color: inherit; }

.cc-terminal__meta {
	color: var(--text-muted);
	font-size: 0.75rem;
	margin-top: 0.75rem;
}

.cc-copy-btn {
	font-family: var(--font-mono);
	font-size: 0.6875rem;
	padding: 0.15rem 0.5rem;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 4px;
	color: var(--text-muted);
	cursor: pointer;
	transition: all 0.15s;
}

.cc-copy-btn:hover,
.cc-copy-btn.is-copied {
	color: var(--accent-gold);
	border-color: var(--accent-gold);
}

/* ── WordPress pagination reset ─────────────────────────────── */
.cc-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
}

.cc-pagination a,
.cc-pagination span {
	font-family: var(--font-mono);
	font-size: 0.75rem;
	padding: 0.35rem 0.65rem;
	border: 1px solid var(--border);
	border-radius: 4px;
	text-decoration: none;
	color: var(--text-muted);
}

.cc-pagination .current {
	color: var(--text-primary);
	border-color: var(--accent-gold);
}

/* ── PHP syntax accents ─────────────────────────────────────── */
.cc-php-kw { color: var(--accent-gold); }
.cc-php-name { color: var(--text-primary); }
.cc-php-var { color: var(--syntax-violet); }
.cc-php-str { color: var(--accent-teal); }
.cc-php-muted { color: var(--text-muted); }

.cc-php-header {
	font-family: var(--font-mono);
	font-size: clamp(0.9375rem, 2.5vw, 1.125rem);
	font-weight: 500;
	margin: 0 0 1.75rem;
	line-height: 1.5;
}

.cc-php-var-label {
	font-family: var(--font-mono);
	font-size: 0.75rem;
	margin: 0 0 0.35rem;
	line-height: 1.6;
}

.cc-php-divider {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	max-width: 1100px;
	margin: 0 auto;
	padding: 0.5rem 1.25rem;
	font-family: var(--font-mono);
	font-size: 0.6875rem;
	opacity: 0.55;
}

.cc-php-divider__fill {
	flex: 1;
	height: 1px;
	background: var(--border);
}

.cc-php-close {
	font-family: var(--font-mono);
	font-size: 0.8125rem;
	margin: 1.5rem 0 0;
	text-align: right;
	opacity: 0.5;
}

.cc-php-comment {
	font-family: var(--font-mono);
	font-size: 0.75rem;
	margin: 1.25rem 0 0;
	opacity: 0.65;
}

.cc-cta__title {
	font-family: var(--font-display);
	font-size: clamp(1.25rem, 3vw, 1.625rem);
	margin: 0.75rem 0 0.5rem;
}

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

/* ── Mobile layout (≤767px) ─────────────────────────────────── */
@media (max-width: 767px) {
	.cc-hero {
		padding: 2rem 1rem 3rem;
	}

	.cc-hero__title {
		font-size: clamp(1.5rem, 7.5vw, 2rem);
		overflow-wrap: break-word;
		word-break: break-word;
		hyphens: auto;
	}

	/* Typing animation uses fixed ch width — show wrapped static text on small screens */
	.cc-hero__tagline {
		max-width: 100%;
		overflow: hidden;
	}

	.cc-typewriter {
		display: block;
		width: auto;
		max-width: 100%;
		white-space: normal;
		overflow-wrap: break-word;
		word-break: break-word;
		animation: none;
		border-right: none;
		line-height: 1.5;
	}

	.cc-php-var-label {
		font-size: 0.6875rem;
		line-height: 1.55;
		overflow-wrap: anywhere;
		word-break: break-word;
	}

	.cc-hero__bio {
		font-size: 0.9375rem;
		max-width: 100%;
		overflow-wrap: break-word;
	}

	.cc-hero__actions {
		flex-direction: column;
		align-items: stretch;
		gap: 0.625rem;
	}

	.cc-hero__actions .cc-btn {
		width: 100%;
		justify-content: center;
	}

	.cc-hero__photo-frame {
		max-width: min(280px, calc(100vw - 2rem));
	}

	.cc-main {
		padding: 0 1rem 2.5rem;
		width: 100%;
		min-width: 0;
	}

	.cc-section {
		padding: 2.5rem 0;
	}

	.cc-section--panel {
		margin: 0 -1rem;
		padding-left: 1rem;
		padding-right: 1rem;
	}

	.cc-php-header {
		font-size: 0.8125rem;
		overflow-wrap: anywhere;
		word-break: break-word;
		line-height: 1.6;
	}

	.cc-php-divider {
		padding: 0.5rem 1rem;
		font-size: 0.625rem;
		gap: 0.5rem;
	}

	.cc-skills {
		grid-template-columns: 1fr;
	}

	.cc-projects-grid {
		padding: 0;
		grid-template-columns: 1fr;
	}

	.cc-terminal {
		padding: 0 1rem;
		margin-bottom: 1.5rem;
	}

	.cc-terminal__json {
		font-size: 0.6875rem;
		padding: 0.625rem 0.75rem;
	}

	.cc-terminal__json code {
		white-space: pre-wrap;
		overflow-wrap: anywhere;
		word-break: break-word;
	}

	.cc-cta {
		padding: 2rem 1rem;
		margin-bottom: 1.5rem;
	}

	.cc-header__brand-text {
		font-size: 0.8125rem;
	}

	.cc-header__monogram {
		font-size: 0.8125rem;
	}

	.cc-window__filename {
		display: none;
	}

	.cc-project-card__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.cc-project-card__actions .cc-btn {
		width: 100%;
		justify-content: center;
	}
}
