/* ==========================================================================
   iMoon Studio — base theme styles
   Colors come from CSS variables printed by the theme (palette).
   ========================================================================== */

:root {
	--ims-font-head: 'Instrument Sans', 'Inter', system-ui, sans-serif;
	--ims-font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--ims-font-tech: 'Space Grotesk', 'Inter', system-ui, sans-serif;
	--ims-wrap: 1360px;
	--ims-gutter: 44px;
	--ims-radius: 3px;
	--ims-section: 110px;
	--ims-header-h: 84px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--ims-bg);
	color: var(--ims-ink);
	font-family: var(--ims-font-body);
	font-size: var(--ims-base, 17px);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; text-decoration: none; transition: color .2s, opacity .2s, border-color .2s, background-color .2s; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--ims-font-head);
	font-weight: var(--ims-head-w, 600);
	letter-spacing: var(--ims-head-ls, -0.02em);
	line-height: 1.08;
	margin: 0 0 .5em;
	color: inherit;
}

p { margin: 0 0 1em; }

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

.screen-reader-text,
.ims-skip:not(:focus) {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.ims-skip:focus {
	position: fixed; top: 10px; left: 10px; z-index: 1000;
	background: var(--ims-ink); color: var(--ims-bg);
	padding: 10px 16px; border-radius: var(--ims-radius);
}

.ims-wrap {
	width: 100%;
	max-width: var(--ims-wrap);
	margin: 0 auto;
	padding-left: var(--ims-gutter);
	padding-right: var(--ims-gutter);
}
.ims-wrap--narrow { max-width: 860px; }

.ims-section { padding: var(--ims-section) 0; }

.ims-eyebrow {
	font-family: var(--ims-font-body);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--ims-accent);
	margin: 0 0 14px;
}

/* Buttons ---------------------------------------------------------------- */
.ims-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--ims-font-body);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	padding: 16px 26px;
	border-radius: var(--ims-btn-radius, var(--ims-radius));
	border: 1.5px solid transparent;
	cursor: pointer;
	white-space: nowrap;
}
.ims-btn--solid { background: var(--ims-ink); color: var(--ims-bg); }
.ims-btn--solid:hover { background: var(--ims-accent); color: var(--ims-on-accent); }
.ims-btn--accent { background: var(--ims-accent); color: var(--ims-on-accent); }
.ims-btn--accent:hover { background: var(--ims-ink); color: var(--ims-bg); }
.ims-btn--outline { border-color: currentColor; }
.ims-btn--outline:hover { background: var(--ims-ink); color: var(--ims-bg); border-color: var(--ims-ink); }
.ims-btn--light { background: #fff; color: #1B1D20; }
.ims-btn--light:hover { background: var(--ims-accent); color: var(--ims-on-accent); }
.ims-btn--ghost-light { color: #fff; border-color: rgba(255,255,255,.55); }
.ims-btn--ghost-light:hover { background: #fff; color: #1B1D20; border-color: #fff; }

.ims-textlink {
	display: inline-flex; align-items: center; gap: 8px;
	font-weight: 600; font-size: 15px;
	border-bottom: 2px solid var(--ims-accent);
	padding-bottom: 4px;
}
.ims-textlink:hover { color: var(--ims-accent); }

/* Header ----------------------------------------------------------------- */
.ims-header { position: relative; z-index: 100; background: var(--ims-header-bg); color: var(--ims-header-ink); }
.ims-header.is-sticky { position: sticky; top: 0; }
.admin-bar .ims-header.is-sticky { top: 32px; }
@media (max-width: 782px) { .admin-bar .ims-header.is-sticky { top: 0; } }
.ims-header.ims-hb-shadow.is-scrolled,
.ims-header.ims-hb-line.is-scrolled { box-shadow: 0 10px 30px rgba(0,0,0,.06); }
.ims-header.ims-hb-shadow { box-shadow: 0 6px 24px rgba(0,0,0,.07); }

.ims-topbar { background: var(--ims-tb-bg); color: var(--ims-tb-ink); font-size: 13px; }
.ims-topbar__inner { min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.ims-topbar__right { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.ims-topbar__sep { width: 1px; height: 16px; background: currentColor; opacity: .3; }
.ims-topbar__studio { color: var(--ims-tb-link); font-family: var(--ims-font-tech); font-weight: 500; letter-spacing: .04em; }
.ims-topbar__studio:hover { color: #fff; }

.ims-navbar { border-bottom: 1px solid transparent; }
.ims-hb-line .ims-navbar { border-bottom-color: var(--ims-line); }
.ims-header--full .ims-wrap { max-width: none; }
.ims-navbar__inner { min-height: var(--ims-header-h); display: flex; align-items: center; justify-content: space-between; gap: 28px; transition: min-height .25s ease; }
.ims-navbar__end { display: flex; align-items: center; gap: 16px; flex: none; }
.ims-shrink.is-scrolled .ims-navbar__inner { min-height: var(--ims-header-h-s); }

.ims-brand { display: inline-flex; align-items: center; gap: 12px; flex: none; color: inherit; }
.ims-brand__logo { width: auto; height: var(--ims-logo-h); max-width: 260px; object-fit: contain; transition: height .25s ease; }
.ims-shrink.is-scrolled .ims-brand__logo { height: var(--ims-logo-h-s); }
.ims-brand__logo--alt { display: none; }
.ims-brand__name { font-family: var(--ims-brand-font); font-weight: 700; font-size: var(--ims-brand-size); letter-spacing: .01em; line-height: 1.1; }

.ims-nav { flex: 1 1 auto; display: flex; justify-content: center; align-items: center; }
.ims-header--right .ims-nav { justify-content: flex-end; }
.ims-nav__menu, .ims-nav__menu ul { list-style: none; margin: 0; padding: 0; }
.ims-nav__menu { display: flex; align-items: center; gap: var(--ims-menu-gap); flex-wrap: wrap; justify-content: center; }
.ims-nav__menu > li { position: relative; }
.ims-nav__menu a { display: block; font-size: var(--ims-menu-size); font-weight: var(--ims-menu-w); text-transform: var(--ims-menu-tt); letter-spacing: var(--ims-menu-ls); padding: 8px 0; position: relative; }
.ims-nav__menu > li > a:hover,
.ims-nav__menu > .current-menu-item > a,
.ims-nav__menu > .current-menu-ancestor > a { color: var(--ims-header-act); }
.ims-ind-underline .ims-nav__menu > .current-menu-item > a,
.ims-ind-underline .ims-nav__menu > .current-menu-ancestor > a { box-shadow: inset 0 -2px 0 var(--ims-header-act); }
.ims-ind-dot .ims-nav__menu > .current-menu-item > a::before,
.ims-ind-dot .ims-nav__menu > .current-menu-ancestor > a::before { content: ''; position: absolute; left: 50%; bottom: -2px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--ims-header-act); }
.ims-nav__menu .menu-item-has-children > a::after {
	content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 8px; vertical-align: 2px;
	border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg);
}
.ims-nav__menu .sub-menu {
	position: absolute; top: 100%; left: -20px; min-width: var(--ims-sub-w);
	background: var(--ims-sub-bg); color: var(--ims-ink); border: 1px solid var(--ims-line);
	padding: 10px 0; opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .2s, transform .2s, visibility .2s;
	box-shadow: 0 18px 40px rgba(0,0,0,.08); text-align: left;
}
.ims-sub-fade .ims-nav__menu .sub-menu { transform: none; }
.ims-sub-none .ims-nav__menu .sub-menu { transition: none; transform: none; }
.ims-nav__menu .sub-menu .sub-menu { top: -11px; left: 100%; }
.ims-nav__menu li:hover > .sub-menu,
.ims-nav__menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.ims-nav__menu .sub-menu a { padding: 9px 20px; font-size: 14px; text-transform: none; letter-spacing: 0; }
.ims-nav__menu .sub-menu a:hover { color: var(--ims-accent); background: var(--ims-bg); }
.ims-nav__extra { display: none; flex-direction: column; align-items: flex-start; gap: 18px; margin-top: 26px; }
.ims-nav__email { font-weight: 600; }
.ims-social--menu { gap: 16px; }
.ims-nav__cta { flex: none; }
.ims-textlink.ims-nav__cta { font-size: 15px; }

/* Split: menu on both sides of the logo */
.ims-header--split .ims-navbar__inner { display: grid; grid-template-columns: 1fr auto 1fr; }
.ims-header--split .ims-nav-split--l { justify-content: flex-end; }
.ims-header--split .ims-nav-split--l .ims-nav__menu { justify-content: flex-end; }
.ims-split-r { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-width: 0; }
.ims-header--split .ims-nav-split--r { justify-content: flex-start; }
.ims-header--split .ims-nav-split--r .ims-nav__menu { justify-content: flex-start; }
.ims-header--split .ims-brand { flex-direction: column; gap: 6px; }

/* Two rows */
.ims-header--stacked .ims-navbar__inner { display: grid; grid-template-columns: 1fr auto 1fr; padding-top: 20px; padding-bottom: 16px; }
.ims-header--stacked .ims-brand { flex-direction: column; gap: 8px; }
.ims-header--stacked .ims-brand__name { font-size: calc(var(--ims-brand-size) * 1.25); }
.ims-header--stacked .ims-navbar__end { justify-self: end; }
.ims-navbar__tagline { font-size: 13px; color: var(--ims-muted); }
.ims-navrow { border-top: 1px solid var(--ims-line); }
.ims-navrow .ims-wrap { min-height: 54px; display: flex; align-items: center; justify-content: center; }
.ims-header--stacked.ims-hb-line .ims-navbar { border-bottom: 0; }
.ims-header--stacked.ims-hb-line .ims-navrow { border-bottom: 1px solid var(--ims-line); }
.ims-shrink.is-scrolled.ims-header--stacked .ims-navbar__inner { padding-top: 10px; padding-bottom: 8px; }

/* Transparent over the first section */
.ims-header--over { position: absolute; left: 0; right: 0; top: 0; background: transparent; box-shadow: none; }
.ims-header--over.is-sticky { position: fixed; }
.admin-bar .ims-header--over { top: 32px; }
@media (max-width: 782px) { .admin-bar .ims-header--over { top: 46px; } .admin-bar .ims-header--over.is-sticky { top: 0; } }
.ims-header--over .ims-navbar { border-bottom-color: transparent; transition: background-color .3s, color .3s; }
.ims-header--over:not(.is-scrolled) .ims-navbar { color: #fff; background: linear-gradient(180deg, rgba(10,12,15,.45), rgba(10,12,15,0)); }
.ims-header--over:not(.is-scrolled) .ims-navrow { border-color: rgba(255,255,255,.2); }
.ims-header--over:not(.is-scrolled) .ims-navbar__tagline { color: rgba(255,255,255,.75); }
.ims-header--over:not(.is-scrolled) .ims-nav__menu > li > a:hover,
.ims-header--over:not(.is-scrolled) .ims-nav__menu > .current-menu-item > a { color: #fff; opacity: .8; }
.ims-header--over:not(.is-scrolled) .ims-btn--outline { color: #fff; }
.ims-header--over:not(.is-scrolled) .ims-btn--solid { background: #fff; color: #1B1D20; }
.ims-header--over.is-scrolled .ims-navbar { background: var(--ims-header-bg); }
.ims-hb-line.ims-header--over.is-scrolled .ims-navbar { border-bottom-color: var(--ims-line); }

/* Search */
.ims-search-toggle { width: 40px; height: 40px; border: 0; background: none; color: inherit; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.ims-search-toggle:hover { color: var(--ims-header-act); }
.ims-hsearch { background: var(--ims-header-bg); color: var(--ims-header-ink); border-bottom: 1px solid var(--ims-line); padding: 18px 0 22px; }
.ims-hsearch .ims-search { margin: 0; max-width: none; }

/* Burger */
.ims-burger { display: none; align-items: center; gap: 10px; min-width: 44px; height: 44px; border: 0; background: none; padding: 10px; cursor: pointer; color: inherit; font: inherit; font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.ims-burger__lines { display: block; width: 24px; }
.ims-burger__lines span { display: block; height: 1.5px; background: currentColor; margin: 6px 0; transition: transform .25s, opacity .25s; }
.ims-burger[aria-expanded="true"] .ims-burger__lines span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.ims-burger[aria-expanded="true"] .ims-burger__lines span:nth-child(2) { opacity: 0; }
.ims-burger[aria-expanded="true"] .ims-burger__lines span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.ims-nav-open { overflow: hidden; }
.ims-nav-open .ims-m-dropdown { overflow: visible; }
:root { --ims-m-line: color-mix(in srgb, var(--ims-m-ink) 14%, transparent); --ims-m-active: var(--ims-header-act); }
@keyframes ims-panel-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ims-fade-in { from { opacity: 0; } to { opacity: 1; } }

/* Back to top */
.ims-totop { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 46px; height: 46px; border-radius: var(--ims-btn-radius); background: var(--ims-accent); color: var(--ims-on-accent); box-shadow: 0 6px 20px rgba(0,0,0,.25); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s, visibility .25s, background-color .2s; }
.ims-totop.is-on { opacity: 1; visibility: visible; transform: none; }
.ims-totop:hover { background: var(--ims-ink); color: var(--ims-bg); }

/* Reveal on scroll */
.ims-reveal .ims-rv { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.ims-reveal .ims-rv.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .ims-reveal .ims-rv { opacity: 1; transform: none; transition: none; } }

/* Breadcrumb */
.ims-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--ims-muted); margin-bottom: 18px; }
.ims-crumbs a:hover { color: var(--ims-accent); }
.ims-crumbs__sep { opacity: .6; }
.ims-page-crumbs { padding-top: 36px; }

/* Social icons ----------------------------------------------------------- */
.ims-social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.ims-social a { display: flex; align-items: center; justify-content: center; }
.ims-social--topbar { gap: 14px; }
.ims-social--topbar a { color: var(--ims-tb-ink); }
.ims-social--topbar a:hover { color: #fff; }
.ims-social--footer { gap: 12px; }
.ims-social--footer a { width: var(--ims-ft-social); height: var(--ims-ft-social); color: #fff; }
.ims-social--circle a, .ims-social--square a { border: 1px solid rgba(255,255,255,.22); }
.ims-social--circle a { border-radius: 50%; }
.ims-social--square a { border-radius: var(--ims-radius); }
.ims-social--circle a:hover, .ims-social--square a:hover { background: #fff; color: var(--ims-ft-bg); border-color: #fff; }
.ims-social--icon { gap: 4px; }
.ims-social--icon a { width: auto; height: auto; padding: 6px; }
.ims-social--icon a svg { width: calc(var(--ims-ft-social) * .5); height: calc(var(--ims-ft-social) * .5); }
.ims-social--icon a:hover { color: var(--ims-hero-tag); }

/* Footer ----------------------------------------------------------------- */
.ims-footer { background: var(--ims-ft-bg); color: var(--ims-ft-ink); font-size: 14px; border-top: 1px solid rgba(255,255,255,.08); }
.ims-footer a:hover { color: #fff; }
.ims-footer__grid { display: flex; flex-wrap: wrap; gap: 48px 44px; padding-top: 72px; padding-bottom: 56px; }
.ims-footer__col { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.ims-footer__col--brand { flex: 1.3 1 260px; }
.ims-footer__col--menu { flex: .8 1 150px; }
.ims-footer__col--social { flex: 1.6 1 300px; }
.ims-footer .ims-brand { color: #fff; }
.ims-footer .ims-brand__logo { height: var(--ims-logo-h); }
.ims-footer__text { margin: 0; line-height: 1.6; }
.ims-footer__email { color: #fff; font-weight: 600; }
.ims-footer__title { font-family: var(--ims-font-body); font-size: 14px; font-weight: 600; letter-spacing: 0; color: #fff; margin: 0; }
.ims-footer__menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ims-footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 26px 0 36px; font-size: 13px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; }
.ims-footer__legal { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* Logos on dark backgrounds: the alternative logo if there is one,
   otherwise the main logo in white (option in Logo). */
.ims-footer .has-alt .ims-brand__logo--main,
.ims-dark .ims-header .has-alt .ims-brand__logo--main,
.ims-studio-mode .ims-header .has-alt .ims-brand__logo--main,
.ims-header--over:not(.is-scrolled) .has-alt .ims-brand__logo--main { display: none; }
.ims-footer .has-alt .ims-brand__logo--alt,
.ims-dark .ims-header .has-alt .ims-brand__logo--alt,
.ims-studio-mode .ims-header .has-alt .ims-brand__logo--alt,
.ims-header--over:not(.is-scrolled) .has-alt .ims-brand__logo--alt { display: block; }
.ims-logo-mono .ims-footer .ims-brand:not(.has-alt) .ims-brand__logo,
.ims-logo-mono.ims-dark .ims-header .ims-brand:not(.has-alt) .ims-brand__logo,
.ims-logo-mono.ims-studio-mode .ims-header .ims-brand:not(.has-alt) .ims-brand__logo,
.ims-logo-mono .ims-header--over:not(.is-scrolled) .ims-brand:not(.has-alt) .ims-brand__logo { filter: brightness(0) invert(1); }

/* Page head / prose ------------------------------------------------------ */
.ims-page-head { padding: 96px 0 56px; border-bottom: 1px solid var(--ims-line); }
.ims-page-head__title { font-size: calc(clamp(40px, 6vw, 72px) * var(--ims-scale, 1)); line-height: 1.02; margin: 0; max-width: 980px; }
.ims-page-head__text { margin-top: 18px; color: var(--ims-muted); max-width: 640px; font-size: 18px; }
.ims-page-head--post { border-bottom: 0; padding-bottom: 36px; }
.ims-page-head--post .ims-page-head__title { font-size: calc(clamp(34px, 4.6vw, 56px) * var(--ims-scale, 1)); }

.ims-article__cover { margin-bottom: 56px; }
.ims-article__cover img { width: 100%; border-radius: var(--ims-radius); }

.ims-prose { padding-top: 56px; padding-bottom: 96px; font-size: 18px; line-height: 1.75; }
.ims-page-head--post + .ims-prose,
.ims-article__cover + .ims-prose { padding-top: 0; }
.ims-prose h2 { font-size: calc(34px * var(--ims-scale, 1)); margin-top: 1.6em; }
.ims-prose h3 { font-size: calc(26px * var(--ims-scale, 1)); margin-top: 1.5em; }
.ims-prose a { color: var(--ims-accent); border-bottom: 1px solid currentColor; }
.ims-prose img { border-radius: var(--ims-radius); }
.ims-prose blockquote { margin: 1.6em 0; padding-left: 24px; border-left: 2px solid var(--ims-accent); font-size: 22px; font-family: var(--ims-font-head); }
.ims-prose ul, .ims-prose ol { padding-left: 1.2em; }
.ims-prose hr { border: 0; border-top: 1px solid var(--ims-line); margin: 2.4em 0; }
.ims-prose figure { margin: 2em 0; }
.ims-prose figcaption { font-size: 14px; color: var(--ims-muted); margin-top: 8px; }
.ims-prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.ims-prose th, .ims-prose td { border-bottom: 1px solid var(--ims-line); padding: 10px 8px; text-align: left; }

.ims-post-meta { display: flex; gap: 14px; align-items: center; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ims-muted); margin-bottom: 14px; }
.ims-post-meta__cat { color: var(--ims-accent); }

.ims-post-nav { padding-bottom: 80px; }
.ims-post-nav .nav-links { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--ims-line); padding-top: 28px; font-family: var(--ims-font-head); font-weight: 600; font-size: 18px; }
.ims-post-nav .nav-next { text-align: right; margin-left: auto; }

/* Blog cards ------------------------------------------------------------- */
.ims-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 28px; }
.ims-post-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1000px) { .ims-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ims-post-grid, .ims-post-grid--2 { grid-template-columns: 1fr; } }
.ims-card__media { aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--ims-radius); background: var(--ims-surface); margin-bottom: 18px; }
.ims-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.ims-card__link:hover img { transform: scale(1.03); }
.ims-card__title { font-size: 22px; line-height: 1.3; margin: 0; }
.ims-card__link:hover .ims-card__title { color: var(--ims-accent); }

.ims-pagination { margin-top: 64px; }
.ims-pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.ims-pagination .page-numbers { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ims-line); border-radius: var(--ims-radius); font-weight: 600; padding: 0 12px; }
.ims-pagination .page-numbers.current,
.ims-pagination .page-numbers:hover { background: var(--ims-ink); color: var(--ims-bg); border-color: var(--ims-ink); }

.ims-search { display: flex; gap: 10px; max-width: 560px; margin-top: 18px; }
.ims-search input { flex: 1; font: inherit; padding: 14px 16px; border: 1px solid var(--ims-line); border-radius: var(--ims-radius); background: var(--ims-surface); color: var(--ims-ink); }
.ims-search button { font: inherit; font-weight: 600; padding: 14px 22px; border: 0; border-radius: var(--ims-radius); background: var(--ims-ink); color: var(--ims-bg); cursor: pointer; }

.ims-comments { padding: 40px 0 80px; border-top: 1px solid var(--ims-line); }
.ims-comments input, .ims-comments textarea { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid var(--ims-line); border-radius: var(--ims-radius); background: var(--ims-surface); color: var(--ims-ink); }
.ims-comments .submit { width: auto; background: var(--ims-ink); color: var(--ims-bg); border: 0; padding: 14px 24px; font-weight: 600; cursor: pointer; }

/* Elementor: keep sections edge to edge with the theme's wrap as reference */
.elementor-section.elementor-section-boxed > .elementor-container { max-width: var(--ims-wrap); }

/* ==========================================================================
   Studio mode (pages with the Studio template and their children)
   ========================================================================== */
body.ims-studio-mode {
	--ims-bg: #0D131F;
	--ims-surface: #121A29;
	--ims-ink: #E6ECF5;
	--ims-muted: #A9B5C7;
	--ims-line: #22304A;
	--ims-accent: var(--ims-studio-accent);
	--ims-on-accent: #0D131F;
	--ims-deep: #090E17;
	--ims-deep-muted: #8E9AAE;
	--ims-font-head: 'Space Grotesk', 'Inter', system-ui, sans-serif;
}
body.ims-studio-mode { --ims-header-bg: #0D131F; --ims-header-ink: #E6ECF5; --ims-header-act: var(--ims-studio-accent); --ims-sub-bg: #121A29; }
body.ims-studio-mode .ims-btn--solid { background: var(--ims-studio-accent); color: #0D131F; }
body.ims-studio-mode .ims-btn--solid:hover { background: #fff; }

/* Responsive base -------------------------------------------------------- */
@media (max-width: 900px) {
	body { font-size: calc(var(--ims-base, 17px) - 1px); }
	.ims-topbar__text { display: none; }
	.ims-topbar__inner { justify-content: center; }
	.ims-tb-hide-m .ims-topbar { display: none; }
	.ims-header--stacked .ims-navbar__tagline { visibility: hidden; }
}
@media (max-width: 560px) {
	.ims-brand__name { font-size: min(var(--ims-brand-size), 17px); }
	.ims-social--topbar { gap: 12px; }
}

/* Video lightbox */
.ims-lb-open { overflow: hidden; }
.ims-lb { position: fixed; inset: 0; z-index: 99999; background: rgba(12,13,15,.92); display: flex; align-items: center; justify-content: center; padding: 64px 24px; animation: ims-lb-in .2s ease; }
@keyframes ims-lb-in { from { opacity: 0; } to { opacity: 1; } }
.ims-lb__frame { width: min(1280px, 100%); aspect-ratio: 16 / 9; background: #000; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.ims-lb__frame iframe, .ims-lb__frame video { width: 100%; height: 100%; border: 0; display: block; }
.ims-lb__close { position: absolute; top: 18px; right: 18px; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: none; cursor: pointer; }
.ims-lb__close span { position: absolute; left: 13px; right: 13px; top: 23px; height: 1.5px; background: #fff; transform: rotate(45deg); }
.ims-lb__close span + span { transform: rotate(-45deg); }
.ims-lb__close:hover { background: #fff; }
.ims-lb__close:hover span { background: #111; }

/* Transparent header: the first section starts under it */
.ims-has-over .ims-hero { min-height: calc(var(--ims-hero-h, 680px) + var(--ims-header-h) + 40px); }
.ims-has-over .ims-hero__content { padding-top: calc(80px + var(--ims-header-h) + 40px); }
.ims-has-over .ims-main > :not(.elementor):first-child { padding-top: calc(var(--ims-header-h) + 40px); }
