/* ==========================================================================
   OEA Portfolio — theme styles
   Converted from the Lovable/Tailwind build. Cool dark neutrals + one cyan accent.
   ========================================================================== */

:root {
	--oea-bg: #0a0e11;
	--oea-fg: #e9ebee;
	--oea-card: #101419;
	--oea-muted: #191d22;
	--oea-muted-fg: #8c939b;
	--oea-primary: #34dde5;
	--oea-primary-fg: #0a0e11;
	--oea-primary-60: rgba(52, 221, 229, 0.6);
	--oea-primary-40: rgba(52, 221, 229, 0.4);
	--oea-border: #292e34;
	--oea-destructive: #f75d59;
	--oea-font-sans: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
	--oea-font-mono: "JetBrains Mono", ui-monospace, monospace;
	--oea-max: 1152px;
	--oea-gutter: 24px;
	--oea-header-h: 61px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background-color: var(--oea-bg);
	color: var(--oea-fg);
	font-family: var(--oea-font-sans);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--oea-primary); color: var(--oea-primary-fg); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6, p, ol, ul, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 1px solid var(--oea-primary); outline-offset: 2px; }
.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.screen-reader-text:focus {
	clip: auto; clip-path: none; height: auto; width: auto; z-index: 100000;
	top: 8px; left: 8px; padding: 12px 16px; background: var(--oea-primary); color: var(--oea-primary-fg);
}
body.admin-bar .oea-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .oea-header { top: 46px; } }

/* ---------- Utilities (also usable as CSS classes inside Elementor) ---------- */
.oea-container { width: 100%; max-width: var(--oea-max); margin-inline: auto; }
.oea-mono { font-family: var(--oea-font-mono); }
.oea-primary { color: var(--oea-primary); }
.oea-muted { color: var(--oea-muted-fg); }

.oea-grid-bg {
	position: absolute; inset: 0; pointer-events: none;
	background-image:
		linear-gradient(to right, rgba(41, 46, 52, 0.5) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(41, 46, 52, 0.5) 1px, transparent 1px);
	background-size: 64px 64px;
	-webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 75%);
	mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 75%);
}
/* Elementor: add class "oea-has-grid-bg" to a container to get the grid behind it */
.oea-has-grid-bg { position: relative; overflow: hidden; }
.oea-has-grid-bg::before {
	content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
	background-image:
		linear-gradient(to right, rgba(41, 46, 52, 0.5) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(41, 46, 52, 0.5) 1px, transparent 1px);
	background-size: 64px 64px;
	-webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 75%);
	mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 75%);
}
.oea-has-grid-bg > * { position: relative; z-index: 1; }

.oea-tag {
	display: inline-block;
	border: 1px solid var(--oea-border);
	padding: 4px 8px;
	font-family: var(--oea-font-mono);
	font-size: 12px; line-height: 16px;
	color: var(--oea-muted-fg);
}
.oea-tag--lg { padding: 6px 12px; color: var(--oea-fg); }
.oea-tag--primary { border-color: var(--oea-primary-40); color: var(--oea-primary); }
.oea-tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* Buttons */
.oea-btn {
	display: inline-block;
	border: 1px solid var(--oea-border);
	padding: 12px 24px;
	font-family: var(--oea-font-mono); font-size: 14px; line-height: 20px;
	color: var(--oea-fg);
	transition: color .15s, background-color .15s, border-color .15s;
}
.oea-btn:hover { border-color: var(--oea-primary); color: var(--oea-primary); }
.oea-btn--solid { border-color: var(--oea-primary); background: var(--oea-primary); color: var(--oea-primary-fg); }
.oea-btn--solid:hover { background: transparent; color: var(--oea-primary); }
.oea-btn--outline { border-color: var(--oea-primary); color: var(--oea-primary); }
.oea-btn--outline:hover { background: var(--oea-primary); color: var(--oea-primary-fg); }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
/* Never hide anything while editing in Elementor */
.elementor-editor-active .reveal, .elementor-editor-preview .reveal { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) {
	.js .reveal { opacity: 1; transform: none; transition: none; }
	html { scroll-behavior: auto; }
}

/* ---------- Header ---------- */
.oea-header {
	position: fixed; inset-inline: 0; top: 0; z-index: 40;
	border-bottom: 1px solid var(--oea-border);
	background: rgba(10, 14, 17, 0.8);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.oea-header__inner {
	max-width: var(--oea-max); margin-inline: auto;
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 16px var(--oea-gutter);
}
.oea-logo { font-family: var(--oea-font-mono); font-size: 14px; line-height: 20px; color: var(--oea-primary); white-space: nowrap; }
.oea-logo img { max-height: 28px; width: auto; }
.oea-nav ul { display: flex; gap: 24px; }
.oea-nav a, .oea-nav-link {
	font-family: var(--oea-font-mono); font-size: 12px; line-height: 16px;
	text-transform: uppercase; letter-spacing: .1em;
	color: var(--oea-muted-fg); transition: color .15s;
}
.oea-nav a:hover, .oea-nav .current-menu-item > a { color: var(--oea-primary); }
@media (max-width: 480px) {
	.oea-nav ul { gap: 14px; }
	.oea-nav a { letter-spacing: .05em; font-size: 11px; }
	.oea-header__inner { padding-inline: 16px; }
}

/* Offset in-page anchor jumps for the fixed header */
[id] { scroll-margin-top: 80px; }

/* ---------- Hero ---------- */
.oea-hero {
	position: relative; display: flex; align-items: center;
	min-height: 100vh; min-height: 100svh; overflow: hidden;
	padding-inline: var(--oea-gutter);
}
.oea-hero__grid {
	position: relative; width: 100%; max-width: var(--oea-max); margin-inline: auto;
	display: grid; align-items: center; gap: 48px; padding-top: 96px; padding-bottom: 48px;
}
@media (min-width: 768px) { .oea-hero__grid { grid-template-columns: 1.4fr 1fr; } }
.oea-eyebrow { font-family: var(--oea-font-mono); font-size: 14px; line-height: 20px; color: var(--oea-primary); }
.oea-hero__title { margin-top: 24px; font-size: 48px; line-height: 1; font-weight: 300; letter-spacing: -0.025em; }
@media (min-width: 640px) { .oea-hero__title { font-size: 72px; } }
.oea-hero__lead { margin-top: 32px; max-width: 576px; font-size: 18px; line-height: 28px; color: var(--oea-muted-fg); }
@media (min-width: 640px) { .oea-hero__lead { font-size: 20px; } }
.oea-hero__ctas { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 16px; }

/* Portrait with offset cyan frame — in Elementor give the Image widget the class "oea-portrait" */
.oea-portrait { position: relative; width: 100%; max-width: 384px; margin-inline: auto; }
.oea-portrait::before {
	content: ""; position: absolute; inset: -12px; transform: translate(12px, 12px);
	border: 1px solid var(--oea-primary-60); pointer-events: none;
}
.oea-portrait img {
	position: relative; width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
	border: 1px solid var(--oea-border);
}
.elementor-widget-image.oea-portrait .elementor-widget-container { position: relative; }

/* ---------- Sections ---------- */
.oea-section { border-top: 1px solid var(--oea-border); padding: 96px var(--oea-gutter); }
@media (min-width: 640px) { .oea-section { padding-block: 128px; } }
.oea-section-head {
	display: flex; align-items: baseline; gap: 16px; margin-bottom: 56px;
	font-family: var(--oea-font-mono); font-size: 14px; line-height: 20px;
}
.oea-section-head__index { color: var(--oea-primary); }
.oea-section-head__title { font-size: inherit; font-weight: 400; text-transform: uppercase; letter-spacing: .1em; color: var(--oea-muted-fg); }
.oea-section-head__rule { height: 1px; flex: 1; background: var(--oea-border); align-self: center; }
.oea-section-lead { margin-bottom: 56px; font-size: 30px; line-height: 1.2; font-weight: 300; letter-spacing: -0.025em; }
@media (min-width: 640px) { .oea-section-lead { font-size: 36px; } }
.oea-section-intro { margin-top: -32px; margin-bottom: 48px; max-width: 672px; color: var(--oea-muted-fg); }

/* Elementor: a 1px-high flexible line inside a row (use on a Divider/Spacer widget) */
.oea-rule-grow { flex: 1 1 auto !important; }

/* ---------- Project grid (theme + OEA Projects widget) ---------- */
.oea-projects { display: grid; border-top: 1px solid var(--oea-border); border-left: 1px solid var(--oea-border); }
.oea-projects > * { border-right: 1px solid var(--oea-border); border-bottom: 1px solid var(--oea-border); }
@media (min-width: 768px) {
	.oea-projects--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.oea-projects--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.oea-card {
	display: block; width: 100%; text-align: left;
	background: var(--oea-bg); padding: 32px;
	transition: background-color .15s;
}
@media (min-width: 640px) { .oea-card { padding: 40px; } }
.oea-card:hover { background: var(--oea-card); }
.oea-card__meta {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	font-family: var(--oea-font-mono); font-size: 12px; line-height: 16px; color: var(--oea-muted-fg);
}
.oea-card__cat { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oea-card__status { flex-shrink: 0; color: var(--oea-primary); }
.oea-card__title { margin-top: 40px; font-size: 24px; line-height: 32px; font-weight: 500; transition: color .15s; }
.oea-card__arrow { display: inline-block; transition: transform .15s; }
.oea-card:hover .oea-card__title { color: var(--oea-primary); }
.oea-card:hover .oea-card__arrow { transform: translateX(4px); }
.oea-card__summary { margin-top: 12px; color: var(--oea-muted-fg); }
.oea-card .oea-tags { margin-top: 24px; }
.oea-projects__empty { grid-column: 1 / -1; background: var(--oea-bg); padding: 32px; font-family: var(--oea-font-mono); font-size: 14px; color: var(--oea-muted-fg); }

/* ---------- Modal ---------- */
.oea-modal {
	position: fixed; inset: 0; z-index: 50; display: none;
	align-items: center; justify-content: center; padding: 16px;
	background: rgba(10, 14, 17, 0.8);
	-webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.oea-modal.is-open { display: flex; animation: oea-fade .15s ease-out; }
.oea-modal__panel {
	position: relative; width: 100%; max-width: 672px; max-height: 90vh; overflow-y: auto;
	border: 1px solid var(--oea-border); background: var(--oea-card); padding: 32px;
	animation: oea-zoom .15s ease-out;
}
@media (min-width: 640px) { .oea-modal__panel { padding: 48px; } }
.oea-modal__close {
	position: absolute; right: 16px; top: 16px; width: 36px; height: 36px;
	border: 1px solid var(--oea-border); font-family: var(--oea-font-mono); color: var(--oea-muted-fg);
	transition: color .15s, border-color .15s;
}
.oea-modal__close:hover { border-color: var(--oea-primary); color: var(--oea-primary); }
.oea-modal__image { margin: 8px 0 24px; border: 1px solid var(--oea-border); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.oea-modal__eyebrow { font-family: var(--oea-font-mono); font-size: 12px; line-height: 16px; color: var(--oea-primary); }
.oea-modal__title { margin-top: 16px; font-size: 30px; line-height: 36px; font-weight: 500; padding-right: 32px; }
.oea-modal__body { margin-top: 16px; line-height: 1.625; color: var(--oea-muted-fg); }
.oea-modal__body p + p { margin-top: 1em; }
.oea-modal .oea-tags { margin-top: 24px; }
.oea-modal__actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }
.oea-modal__actions .oea-btn { padding: 8px 20px; }
body.oea-modal-open { overflow: hidden; }
@keyframes oea-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes oea-zoom { from { opacity: 0; transform: scale(.95); } to { opacity: 1; transform: none; } }

/* ---------- Experience ---------- */
.oea-experience { border-top: 1px solid var(--oea-border); }
.oea-exp { display: grid; gap: 12px; border-bottom: 1px solid var(--oea-border); padding-block: 32px; }
@media (min-width: 768px) { .oea-exp { grid-template-columns: 1fr 2fr; } }
.oea-exp__role { font-size: 20px; line-height: 28px; font-weight: 500; }
.oea-exp__dates { margin-top: 4px; font-family: var(--oea-font-mono); font-size: 12px; line-height: 16px; color: var(--oea-primary); }
.oea-exp__text { color: var(--oea-muted-fg); }
.oea-exp__tags { margin-top: 12px; font-family: var(--oea-font-mono); font-size: 12px; line-height: 16px; color: var(--oea-muted-fg); }

/* ---------- Capabilities ---------- */
.oea-caps { display: grid; border-top: 1px solid var(--oea-border); border-left: 1px solid var(--oea-border); }
.oea-caps > * { border-right: 1px solid var(--oea-border); border-bottom: 1px solid var(--oea-border); }
@media (min-width: 640px) { .oea-caps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .oea-caps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.oea-cap { background: var(--oea-bg); padding: 32px; }
.oea-cap__num { font-family: var(--oea-font-mono); font-size: 12px; line-height: 16px; color: var(--oea-primary); }
.oea-cap__title { margin-top: 24px; font-size: 18px; line-height: 28px; font-weight: 500; }
.oea-cap__text { margin-top: 8px; font-size: 14px; line-height: 20px; color: var(--oea-muted-fg); }

/* ---------- Stack ---------- */
.oea-stack { display: grid; gap: 32px; }
@media (min-width: 640px) { .oea-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .oea-stack { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.oea-stack__label { font-family: var(--oea-font-mono); font-size: 12px; line-height: 16px; text-transform: uppercase; letter-spacing: .1em; color: var(--oea-muted-fg); }
.oea-stack .oea-tags { margin-top: 16px; }

/* ---------- Contact ---------- */
.oea-contact { display: grid; gap: 48px; }
@media (min-width: 768px) { .oea-contact { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.oea-contact__title { font-size: 36px; line-height: 1.1; font-weight: 300; letter-spacing: -0.025em; }
@media (min-width: 640px) { .oea-contact__title { font-size: 48px; } }
.oea-contact__text { margin-top: 24px; color: var(--oea-muted-fg); }
.oea-contact__email { margin-top: 32px; display: inline-block; font-family: var(--oea-font-mono); color: var(--oea-primary); text-underline-offset: 8px; }
.oea-contact__email:hover { text-decoration: underline; }

/* Theme contact form (shortcode [oea_contact_form]) */
.oea-form { display: grid; gap: 24px; }
.oea-field input, .oea-field textarea {
	width: 100%; border: 0; border-bottom: 1px solid var(--oea-border);
	background: transparent; padding: 12px 0; color: var(--oea-fg);
	font: inherit; outline: none; border-radius: 0; resize: none;
	transition: border-color .15s;
}
.oea-field input::placeholder, .oea-field textarea::placeholder { color: var(--oea-muted-fg); opacity: 1; }
.oea-field input:focus, .oea-field textarea:focus { border-color: var(--oea-primary); }
.oea-field__error { margin-top: 8px; font-family: var(--oea-font-mono); font-size: 12px; line-height: 16px; color: var(--oea-destructive); }
.oea-field__error:empty { display: none; }
.oea-form__hp { position: absolute !important; left: -9999px !important; }
.oea-form .oea-btn { justify-self: start; }
.oea-form[aria-busy="true"] .oea-btn { opacity: .6; pointer-events: none; }
.oea-form__notice { border: 1px solid var(--oea-primary); padding: 32px; font-family: var(--oea-font-mono); color: var(--oea-primary); }
.oea-form__notice--error { border-color: var(--oea-destructive); color: var(--oea-destructive); padding: 16px; font-size: 14px; }

/* Elementor Pro Form widget — add class "oea-form-el" to the Form widget */
.oea-form-el .elementor-field-group { margin-bottom: 24px !important; }
.oea-form-el .elementor-field-textual {
	background: transparent !important; border: 0 !important; border-bottom: 1px solid var(--oea-border) !important;
	border-radius: 0 !important; padding: 12px 0 !important; color: var(--oea-fg) !important;
	font-family: var(--oea-font-sans) !important; font-size: 16px !important; min-height: 0 !important;
	box-shadow: none !important; resize: none;
}
.oea-form-el .elementor-field-textual::placeholder { color: var(--oea-muted-fg); opacity: 1; }
.oea-form-el .elementor-field-textual:focus { border-bottom-color: var(--oea-primary) !important; }
.oea-form-el .elementor-button {
	background: transparent !important; border: 1px solid var(--oea-primary) !important; border-radius: 0 !important;
	color: var(--oea-primary) !important; font-family: var(--oea-font-mono) !important; font-size: 14px !important;
	padding: 12px 24px !important; transition: background-color .15s, color .15s;
}
.oea-form-el .elementor-button:hover { background: var(--oea-primary) !important; color: var(--oea-primary-fg) !important; }
.oea-form-el .elementor-field-type-submit { justify-content: flex-start !important; }
.oea-form-el .elementor-message { font-family: var(--oea-font-mono); font-size: 14px; }
.oea-form-el .elementor-message-success { color: var(--oea-primary); border: 1px solid var(--oea-primary); padding: 24px; }
.oea-form-el .elementor-message-danger, .oea-form-el .elementor-error .elementor-message { color: var(--oea-destructive); }

/* ---------- Footer ---------- */
.oea-footer { border-top: 1px solid var(--oea-border); padding: 40px var(--oea-gutter); }
.oea-footer__inner {
	max-width: var(--oea-max); margin-inline: auto;
	display: flex; flex-direction: column; gap: 16px;
	font-family: var(--oea-font-mono); font-size: 12px; line-height: 16px; color: var(--oea-muted-fg);
}
@media (min-width: 640px) { .oea-footer__inner { flex-direction: row; align-items: center; justify-content: space-between; } }
.oea-footer ul { display: flex; gap: 24px; }
.oea-footer a:hover { color: var(--oea-primary); }

/* ---------- Generic pages / posts / single project ---------- */
.oea-page { padding: 140px var(--oea-gutter) 96px; }
.oea-page__inner { max-width: 768px; margin-inline: auto; }
.oea-page__title { font-size: 40px; line-height: 1.1; font-weight: 300; letter-spacing: -0.025em; }
@media (min-width: 640px) { .oea-page__title { font-size: 56px; } }
.oea-page__meta { margin-top: 16px; font-family: var(--oea-font-mono); font-size: 12px; color: var(--oea-primary); }
.oea-page__thumb { margin-top: 40px; border: 1px solid var(--oea-border); }
.oea-back { display: inline-block; margin-bottom: 32px; font-family: var(--oea-font-mono); font-size: 12px; color: var(--oea-muted-fg); }
.oea-back:hover { color: var(--oea-primary); }

.oea-prose { margin-top: 40px; color: var(--oea-muted-fg); line-height: 1.75; }
.oea-prose > * + * { margin-top: 1.25em; }
.oea-prose h2, .oea-prose h3, .oea-prose h4 { color: var(--oea-fg); font-weight: 500; line-height: 1.3; margin-top: 2em; }
.oea-prose h2 { font-size: 28px; } .oea-prose h3 { font-size: 22px; }
.oea-prose a { color: var(--oea-primary); text-decoration: underline; text-underline-offset: 4px; }
.oea-prose ul { list-style: square; padding-left: 1.25em; } .oea-prose ol { list-style: decimal; padding-left: 1.25em; }
.oea-prose li + li { margin-top: .4em; }
.oea-prose blockquote { margin: 0; border-left: 2px solid var(--oea-primary); padding-left: 20px; color: var(--oea-fg); }
.oea-prose code { font-family: var(--oea-font-mono); font-size: .9em; background: var(--oea-muted); padding: 2px 6px; }
.oea-prose pre { background: var(--oea-card); border: 1px solid var(--oea-border); padding: 20px; overflow-x: auto; }
.oea-prose pre code { background: none; padding: 0; }
.oea-prose img, .oea-prose figure { border: 1px solid var(--oea-border); }
.oea-prose figure { margin: 0; }

.oea-postlist { margin-top: 48px; border-top: 1px solid var(--oea-border); }
.oea-postlist__item { display: block; border-bottom: 1px solid var(--oea-border); padding: 28px 0; }
.oea-postlist__item:hover .oea-postlist__title { color: var(--oea-primary); }
.oea-postlist__title { font-size: 22px; font-weight: 500; transition: color .15s; }
.oea-postlist__date { margin-top: 6px; font-family: var(--oea-font-mono); font-size: 12px; color: var(--oea-muted-fg); }
.oea-pagination { margin-top: 40px; display: flex; gap: 16px; font-family: var(--oea-font-mono); font-size: 13px; }
.oea-pagination a { color: var(--oea-primary); }

/* 404 */
.oea-404 { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; }
.oea-404__code { font-size: 72px; font-weight: 600; line-height: 1; }
.oea-404__title { margin-top: 16px; font-size: 20px; font-weight: 600; }
.oea-404__text { margin-top: 8px; font-size: 14px; color: var(--oea-muted-fg); }
.oea-404 .oea-btn { margin-top: 24px; }

/* ---------- Elementor helpers ---------- */
/* Elementor full-width page template: content sits flush under the fixed header */
.oea-elementor-main { min-height: 50vh; }
.elementor-widget-text-editor p:last-child { margin-bottom: 0; }
.elementor-widget-text-editor p { margin-bottom: 1em; }
/* Section heading row: "01. TITLE ———" */
.oea-head-row > .e-con-inner, .oea-head-row { align-items: baseline !important; }
.oea-head-line { flex: 1 1 auto; height: 1px; background: var(--oea-border); align-self: center; }
/* Elementor HTML widget tag lists */
.oea-tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 640px) { .oea-portrait { max-width: calc(100% - 16px); margin-left: 0; } }

/* ---------- Elementor template helpers ---------- */
/* Header container (class "oea-header") stays fixed with blur */
.e-con.oea-header { position: fixed !important; top: 0; left: 0; right: 0; z-index: 40; }
body.admin-bar .e-con.oea-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .e-con.oea-header { top: 46px; } }
.oea-header .oea-nav ul { margin: 0; }
/* Bordered cell grid (Capabilities) — add class "oea-cell-grid" to a grid container */
.oea-cell-grid { border-top: 1px solid var(--oea-border); border-left: 1px solid var(--oea-border); }
.oea-cell-grid > .e-con, .oea-cell-grid > .e-con-inner > .e-con { border-right: 1px solid var(--oea-border); border-bottom: 1px solid var(--oea-border); }
/* Inline link lists (footer socials) */
.oea-inline-links { display: flex; flex-wrap: wrap; gap: 24px; margin: 0; padding: 0; list-style: none; }
.oea-inline-links a { font-family: var(--oea-font-mono); font-size: 12px; line-height: 16px; color: var(--oea-muted-fg); transition: color .15s; }
.oea-inline-links a:hover { color: var(--oea-primary); }
/* Elementor heading links inherit their colour; add hover underline for the email line */
.elementor-widget-heading .elementor-heading-title a[href^="mailto:"]:hover { text-decoration: underline; text-underline-offset: 8px; }
/* Portrait image inside Elementor */
.elementor-widget-image.oea-portrait img { aspect-ratio: 1 / 1; object-fit: cover; border: 1px solid var(--oea-border); width: 100%; }

/* ---------- v1.1 — CV content blocks ---------- */
.oea-facts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; font-family: var(--oea-font-mono); font-size: 12px; line-height: 16px; color: var(--oea-muted-fg); }
.oea-facts span::before { content: "● "; color: var(--oea-primary); }
.oea-bullets { display: grid; gap: 10px; margin: 0 !important; padding: 0; list-style: none; }
.oea-bullets li { position: relative; padding-left: 20px; margin: 0; }
.oea-bullets li::before { content: "—"; position: absolute; left: 0; top: 2px; color: var(--oea-primary); font-family: var(--oea-font-mono); font-size: 12px; }
.oea-certs { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--oea-border); }
.oea-certs li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--oea-border); color: var(--oea-fg); }
.oea-certs__pill { flex-shrink: 0; font-family: var(--oea-font-mono); font-size: 12px; color: var(--oea-primary); }
@media (max-width: 480px) { .oea-certs li { flex-direction: column; gap: 4px; } }

/* ==========================================================================
   v1.3 — compact popup, hover preview, screenshot slider, lightbox
   ========================================================================== */

/* Compact popup */
.oea-modal__panel { max-width: 520px; padding: 32px; }
@media (min-width: 640px) { .oea-modal__panel { padding: 40px; } }
.oea-modal__title { font-size: 24px; line-height: 32px; margin-top: 12px; }
.oea-modal__body { margin-top: 12px; font-size: 15px; line-height: 1.6; }
.oea-modal .oea-tags { margin-top: 20px; }
.oea-modal__actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.oea-modal__actions:empty { display: none; }
.oea-modal__actions .oea-btn { padding: 10px 18px; font-size: 13px; }
.oea-modal .oea-gallery { margin-top: 24px; }
@media (max-width: 480px) { .oea-modal__actions .oea-btn { flex: 1 1 100%; text-align: center; } }

/* Hover preview (desktop only — JS adds it) */
.oea-hover-preview {
	position: fixed; left: 0; top: 0; z-index: 45; pointer-events: none;
	width: 320px; aspect-ratio: 16 / 10; overflow: hidden;
	border: 1px solid var(--oea-primary-40); background: var(--oea-card);
	box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .7);
	opacity: 0; transform: translate3d(-9999px, -9999px, 0) scale(.92);
	transition: opacity .2s ease;
	will-change: transform, opacity;
}
.oea-hover-preview.is-visible { opacity: 1; }
.oea-hover-preview img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
@media (prefers-reduced-motion: reduce) { .oea-hover-preview { transition: none; } }

/* Screenshot slider */
.oea-gallery { position: relative; }
.oea-gallery__viewport { position: relative; border: 1px solid var(--oea-border); background: var(--oea-card); }
.oea-gallery__track {
	display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
	scrollbar-width: none; -ms-overflow-style: none; outline: none;
}
.oea-gallery__track::-webkit-scrollbar { display: none; }
.oea-gallery__track:focus-visible { box-shadow: inset 0 0 0 1px var(--oea-primary); }
.oea-gallery__slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; position: relative; }
.oea-gallery__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; display: block; }
.oea-gallery--full .oea-gallery__img { cursor: zoom-in; }
.oea-gallery__caption {
	padding: 12px 16px; border-top: 1px solid var(--oea-border);
	font-family: var(--oea-font-mono); font-size: 12px; line-height: 16px; color: var(--oea-muted-fg);
}
.oea-gallery__nav {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
	width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
	border: 1px solid var(--oea-border); background: rgba(10, 14, 17, .85);
	font-family: var(--oea-font-mono); color: var(--oea-fg);
	transition: border-color .15s, color .15s, opacity .15s;
}
.oea-gallery__nav:hover { border-color: var(--oea-primary); color: var(--oea-primary); }
.oea-gallery__nav:disabled { opacity: .3; pointer-events: none; }
.oea-gallery__nav--prev { left: 12px; }
.oea-gallery__nav--next { right: 12px; }
.oea-gallery__bar { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
.oea-gallery__count { flex-shrink: 0; font-family: var(--oea-font-mono); font-size: 12px; color: var(--oea-muted-fg); }
.oea-gallery__count [data-oea-current] { color: var(--oea-primary); }
.oea-gallery__thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
.oea-gallery__thumb { flex: 0 0 auto; width: 72px; height: 48px; padding: 0; border: 1px solid var(--oea-border); opacity: .5; transition: opacity .15s, border-color .15s; }
.oea-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.oea-gallery__thumb:hover { opacity: .85; }
.oea-gallery__thumb.is-active { opacity: 1; border-color: var(--oea-primary); }

/* Mini version (inside the popup) */
.oea-gallery--mini .oea-gallery__img { aspect-ratio: 16 / 9; }
.oea-gallery--mini .oea-gallery__nav { width: 32px; height: 32px; font-size: 12px; }
.oea-gallery--mini .oea-gallery__nav--prev { left: 8px; }
.oea-gallery--mini .oea-gallery__nav--next { right: 8px; }
.oea-gallery--mini .oea-gallery__bar { margin-top: 8px; }

@media (max-width: 640px) {
	.oea-gallery__nav { width: 34px; height: 34px; }
	.oea-gallery__thumb { width: 56px; height: 38px; }
}

/* Case study page: wider band for screenshots */
.oea-page__wide { max-width: 1040px; margin: 56px auto 0; }
.oea-shots__label { margin-bottom: 16px; font-family: var(--oea-font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--oea-muted-fg); }

/* Lightbox */
.oea-lightbox {
	position: fixed; inset: 0; z-index: 60; display: none;
	align-items: center; justify-content: center; padding: 56px 16px;
	background: rgba(10, 14, 17, .94);
}
.oea-lightbox.is-open { display: flex; animation: oea-fade .15s ease-out; }
.oea-lightbox__img { max-width: 100%; max-height: 100%; object-fit: contain; border: 1px solid var(--oea-border); }
.oea-lightbox__btn {
	position: absolute; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
	border: 1px solid var(--oea-border); background: rgba(16, 20, 25, .9);
	font-family: var(--oea-font-mono); color: var(--oea-fg); transition: border-color .15s, color .15s;
}
.oea-lightbox__btn:hover { border-color: var(--oea-primary); color: var(--oea-primary); }
.oea-lightbox__close { top: 12px; right: 12px; }
.oea-lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.oea-lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }
.oea-lightbox__count { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); font-family: var(--oea-font-mono); font-size: 12px; color: var(--oea-muted-fg); }

/* v1.3.1 — touch screens (phones/tablets) can't hover, so the featured image
   sits inside the card instead of following the cursor */
.oea-card__media { display: none; }
@media (hover: none), (pointer: coarse) {
	.oea-card__media {
		display: block; overflow: hidden;
		margin: -32px -32px 24px;
		aspect-ratio: 16 / 10;
		border-bottom: 1px solid var(--oea-border);
		background: var(--oea-card);
	}
	.oea-card__img {
		width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block;
		transform: scale(1.04); transition: transform .9s ease;
	}
	.oea-card.is-visible .oea-card__img { transform: none; }
	.oea-card:active .oea-card__img { transform: scale(.98); transition-duration: .15s; }
	.oea-hover-preview { display: none !important; }
}
@media (hover: none) and (min-width: 640px), (pointer: coarse) and (min-width: 640px) {
	.oea-card__media { margin: -40px -40px 28px; }
}
@media (prefers-reduced-motion: reduce) { .oea-card__img { transform: none !important; transition: none !important; } }
