/* ==========================================================================
   Patched Orbit — theme styles
   Colours and fonts come from theme.json presets; this file handles layout.
   ========================================================================== */

:root {
	--po-void: var(--wp--preset--color--void, #050E1F);
	--po-hull: var(--wp--preset--color--hull, #0A1A33);
	--po-deep: var(--wp--preset--color--deep, #0C2550);
	--po-line: var(--wp--preset--color--line, #1E3A66);
	--po-orbit: var(--wp--preset--color--orbit, #4C8DFF);
	--po-burn: var(--wp--preset--color--burn, #FF5B1F);
	--po-ice: var(--wp--preset--color--ice, #E6EDF7);
	--po-paper: var(--wp--preset--color--paper, #EDF2F9);
	--po-ink: var(--wp--preset--color--ink, #06142B);
	--po-muted: var(--wp--preset--color--muted, #93A8C8);
	--po-muted-dark: var(--wp--preset--color--muted-dark, #4A6085);
	--po-f-display: var(--wp--preset--font-family--display, Archivo, system-ui, sans-serif);
	--po-f-body: var(--wp--preset--font-family--body, "IBM Plex Sans", system-ui, sans-serif);
	--po-f-mono: var(--wp--preset--font-family--mono, "IBM Plex Mono", ui-monospace, monospace);
	--po-pad: 64px;
	--po-hairline-dark: rgba(230, 237, 247, .1);
	--po-hairline-light: rgba(6, 20, 43, .15);
	--po-arrow-ur: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M7 7h10v10'/%3E%3C/svg%3E");
	--po-arrow-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M19 12l-7 7-7-7'/%3E%3C/svg%3E");
}

body {
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

/* Remove WordPress' default vertical rhythm between top-level template blocks. */
.wp-site-blocks { position: relative; }
.wp-site-blocks > *,
.po-main > * { margin-block: 0; }

/* Landing sections own their spacing completely. */
.po-section,
.po-section *,
.po-header *,
.po-footer * {
	margin: 0;
	box-sizing: border-box;
}
.po-section a,
.po-footer a { color: inherit; text-decoration: none; }
.po-section ul,
.po-footer ul { list-style: none; padding: 0; }

.po-wrap {
	width: 100%;
	max-width: 1440px;
	margin-inline: auto !important;
	padding-inline: var(--po-pad);
}
.po-stack { display: flex; flex-direction: column; gap: 28px; }

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */
.po-tag,
.po-label,
.po-caption,
.po-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	font: 400 12px/1.4 var(--po-f-mono);
	letter-spacing: .125em;
	text-transform: uppercase;
	color: var(--po-muted);
}
.po-tag::before {
	content: "";
	width: 6px;
	height: 6px;
	flex: none;
	background: var(--po-burn);
}
.po-light .po-tag,
.po-cta .po-tag { color: var(--po-muted-dark); }

.po-h2 {
	font: 600 52px/1.06 var(--po-f-display);
	letter-spacing: -.03em;
}
.po-h3 {
	font: 600 26px/1.15 var(--po-f-display);
	letter-spacing: -.02em;
}
.po-lead { font-size: 17px; line-height: 1.6; color: var(--po-muted); }
.po-lead-lg { font-size: 18px; max-width: 560px; }
.po-idx { font: 400 13px/1 var(--po-f-mono); color: var(--po-burn); }

.po-light { background: var(--po-paper); color: var(--po-ink); }
.po-light .po-lead { color: rgba(6, 20, 43, .7); }

/* --------------------------------------------------------------------------
   Buttons (primary style comes from theme.json)
   -------------------------------------------------------------------------- */
.wp-block-button .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	border-radius: 0;
	transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.wp-block-button:not(.is-style-ghost) .wp-block-button__link:hover { transform: translateY(-1px); }

.wp-block-button.is-style-ghost .wp-block-button__link {
	background: transparent;
	color: var(--po-ice);
	border: 1px solid rgba(230, 237, 247, .25);
	font-weight: 500;
	padding: 15px 23px;
}
.wp-block-button.is-style-ghost .wp-block-button__link:hover { border-color: var(--po-ice); }
.po-light .wp-block-button.is-style-ghost .wp-block-button__link,
.po-cta .wp-block-button.is-style-ghost .wp-block-button__link { color: var(--po-ink); border-color: rgba(6, 20, 43, .25); }

.po-arrow-ur .wp-block-button__link::after,
.po-arrow-down .wp-block-button__link::after {
	content: "";
	width: 18px;
	height: 18px;
	flex: none;
	background: currentColor;
	-webkit-mask: var(--po-arrow-ur) center / contain no-repeat;
	mask: var(--po-arrow-ur) center / contain no-repeat;
}
.po-arrow-down .wp-block-button__link::after {
	-webkit-mask-image: var(--po-arrow-down);
	mask-image: var(--po-arrow-down);
}
.po-btn-sm .wp-block-button__link { padding: 12px 18px; font-size: 14px; }
.po-btn-lg .wp-block-button__link { padding: 20px 28px; font-size: 16px; }

/* --------------------------------------------------------------------------
   Logo
   -------------------------------------------------------------------------- */
.po-logo {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--po-ice);
	text-decoration: none;
}
.po-logo svg { width: 30px; height: 30px; display: block; flex: none; }
.po-logo span { font: 700 16px/1 var(--po-f-display); letter-spacing: .22em; white-space: nowrap; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.po-header {
	background: var(--po-void);
	border-bottom: 1px solid var(--po-hairline-dark);
	color: var(--po-ice);
}
.po-header-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	padding-block: 28px;
}
.po-nav { font-size: 15px; }
.po-nav .wp-block-navigation__container { gap: 40px; }
.po-nav .wp-block-navigation-item__content { color: var(--po-ice); text-decoration: none; }
.po-nav .wp-block-navigation-item__content:hover { color: var(--po-burn); }
.po-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 32px var(--po-pad); }
.po-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 24px; font-size: 24px; }

/* On the front page the header floats over the hero image. */
body.home .po-header-overlay {
	position: absolute;
	inset: 0 0 auto 0;
	z-index: 20;
}
body.home .po-header-overlay .po-header { background: transparent; }
body.home .po-hero { padding-top: 98px; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.po-hero {
	min-height: 900px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	color: var(--po-ice);
	background:
		radial-gradient(ellipse 60% 60% at 85% 75%, rgba(47, 107, 255, .25), rgba(47, 107, 255, 0)),
		linear-gradient(90deg, rgba(5, 14, 31, .96) 0%, rgba(5, 14, 31, .69) 45%, rgba(5, 14, 31, 0) 100%),
		url(../images/hero.jpg) center / cover no-repeat,
		var(--po-void);
}
.po-hero-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 32px;
	padding-block: 80px;
}
.po-display {
	font: 600 84px/1.02 var(--po-f-display);
	letter-spacing: -.03em;
	color: var(--po-ice);
	max-width: 1000px;
}
.po-hero-sub { max-width: 600px; font-size: 19px; line-height: 1.55; color: rgba(230, 237, 247, .8); }
.po-ctas { gap: 16px; }

.po-telemetry { border-top: 1px solid var(--po-hairline-dark); }
.po-telemetry-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	padding-inline: 0;
}
.po-cell {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 28px 32px 32px;
	border-left: 1px solid var(--po-hairline-dark);
}
.po-cell:first-child { border-left: 0; padding-left: var(--po-pad); }
.po-cell-label { font: 400 13px/1.2 var(--po-f-mono); letter-spacing: .115em; color: var(--po-ice); }
.po-cell p:not(.po-cell-label) { font-size: 14px; line-height: 1.45; color: var(--po-muted); }

/* --------------------------------------------------------------------------
   01 Principle
   -------------------------------------------------------------------------- */
.po-principle { padding-block: 120px; }
.po-principle-top {
	display: grid;
	grid-template-columns: 1fr 620px;
	gap: 64px;
	align-items: center;
}
.po-diagram {
	border: 1px solid var(--po-hairline-light);
	padding: 24px;
	min-height: 460px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 24px;
	margin: 0;
}
.po-diagram figcaption {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	font: 400 11px/1 var(--po-f-mono);
	letter-spacing: .1em;
	color: var(--po-muted-dark);
}
.po-diagram svg { display: block; width: 100%; height: auto; }

.po-steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	border-top: 1px solid var(--po-hairline-light);
	margin-top: 80px !important;
}
.po-step {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 32px 40px 0;
	border-left: 1px solid var(--po-hairline-light);
}
.po-step:first-child { border-left: 0; padding-left: 0; }
.po-step:last-child { padding-right: 0; }
.po-step p:not(.po-idx) { font-size: 16px; line-height: 1.6; color: rgba(6, 20, 43, .65); }

/* --------------------------------------------------------------------------
   02 Capabilities
   -------------------------------------------------------------------------- */
.po-caps { background: var(--po-deep); color: var(--po-ice); padding-block: 120px; }
.po-caps-grid {
	display: grid;
	grid-template-columns: 440px 1fr;
	gap: 64px;
	align-items: start;
}
.po-cap-list { border-top: 1px solid rgba(76, 141, 255, .2); }
.po-cap {
	display: grid;
	grid-template-columns: 40px 1fr 300px;
	gap: 40px;
	padding-block: 40px;
	border-bottom: 1px solid rgba(76, 141, 255, .2);
}
.po-cap .po-idx { font-size: 14px; }
.po-cap-title {
	font: 600 32px/1.1 var(--po-f-display);
	letter-spacing: -.025em;
	margin-bottom: 14px !important;
}
.po-cap-main p { font-size: 16px; line-height: 1.6; color: var(--po-muted); }
.po-dash-list { display: flex; flex-direction: column; gap: 12px; padding-top: 6px !important; }
.po-dash-list li { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.po-dash-list li::before { content: ""; width: 8px; height: 1px; flex: none; background: var(--po-muted-dark); }

/* --------------------------------------------------------------------------
   03 Method
   -------------------------------------------------------------------------- */
.po-method { padding-block: 120px; }
.po-method-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 48px;
	margin-bottom: 72px !important;
}
.po-method-head .po-stack { max-width: 720px; }
.po-method-head > .po-lead { max-width: 400px; }
.po-grid4 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	border-top: 1px solid var(--po-hairline-light);
}
.po-mstep {
	display: flex;
	gap: 32px;
	padding: 40px 48px 40px 0;
	border-bottom: 1px solid var(--po-hairline-light);
}
.po-mstep:nth-child(even) { padding: 40px 0 40px 48px; border-left: 1px solid var(--po-hairline-light); }
.po-num { font: 600 44px/1 var(--po-f-display); letter-spacing: -.02em; color: var(--po-orbit); }
.po-mstep-text { display: flex; flex-direction: column; gap: 12px; padding-top: 6px; }
.po-square { display: flex; align-items: center; gap: 12px; }
.po-square::before { content: ""; width: 8px; height: 8px; flex: none; background: var(--po-ink); }
.po-mstep-text p { font-size: 16px; line-height: 1.6; color: rgba(6, 20, 43, .65); }

/* --------------------------------------------------------------------------
   04 Crew
   -------------------------------------------------------------------------- */
.po-crew {
	background: var(--po-hull);
	color: var(--po-ice);
	display: grid;
	grid-template-columns: 620px 1fr;
}
.po-crew-photo { position: relative; min-height: 520px; overflow: hidden; }
.po-crew-img { position: absolute; inset: 0; margin: 0; }
.po-crew-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.po-caption {
	position: absolute;
	left: 32px;
	bottom: 32px;
	padding: 10px 14px;
	background: rgba(5, 14, 31, .8);
	font-size: 11px;
	letter-spacing: .1em;
	color: var(--po-ice);
}
.po-caption::before { content: ""; width: 6px; height: 6px; flex: none; background: var(--po-burn); }
.po-crew-content {
	display: flex;
	flex-direction: column;
	gap: 56px;
	padding: 120px var(--po-pad);
	max-width: 820px;
}
.po-h2-sm { font-size: 44px; }
.po-domains { display: flex; flex-direction: column; gap: 20px; }
.po-domain-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.po-domain-list li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 16px 18px;
	border: 1px solid var(--po-line);
	font-size: 15px;
}
.po-domain-list li::before {
	content: "";
	width: 10px;
	height: 10px;
	flex: none;
	border: 1.5px solid var(--po-orbit);
	border-radius: 50%;
}

/* --------------------------------------------------------------------------
   05 CTA
   -------------------------------------------------------------------------- */
.po-cta { background: var(--po-ice); color: var(--po-ink); padding-block: 140px; text-align: center; }
.po-cta-inner { display: flex; flex-direction: column; align-items: center; gap: 40px; }
.po-cta-title {
	font: 600 72px/1.02 var(--po-f-display);
	letter-spacing: -.03em;
	max-width: 1000px;
}
.po-cta-text { max-width: 560px; font-size: 18px; line-height: 1.6; color: rgba(6, 20, 43, .7); }
.po-cta-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px; }
.po-mail { font: 400 14px/1.4 var(--po-f-mono); }
.po-section .po-mail a { text-decoration: underline; text-underline-offset: 3px; }
.po-cta-note { max-width: 520px; margin-top: -12px; font-size: 14px; line-height: 1.55; color: rgba(6, 20, 43, .68); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.po-footer { background: var(--po-void); color: var(--po-ice); padding: 72px 0 40px; }
.po-footer-top { display: flex; justify-content: space-between; gap: 48px; margin-bottom: 64px !important; }
.po-footer-brand { display: flex; flex-direction: column; gap: 20px; }
.po-footer-brand > p { max-width: 320px; font-size: 15px; line-height: 1.6; color: var(--po-muted); }
.po-footer-cols { display: flex; gap: 96px; }
.po-footer-col { display: flex; flex-direction: column; gap: 14px; font-size: 15px; }
.po-footer-col .po-label { color: var(--po-muted-dark); }
.po-footer-col a:hover { color: var(--po-burn); }
.po-footer-bottom {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	padding-top: 24px;
	border-top: 1px solid var(--po-line);
	font: 400 12px/1.4 var(--po-f-mono);
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--po-muted-dark);
}

/* --------------------------------------------------------------------------
   Regular pages, posts, archives
   -------------------------------------------------------------------------- */
.po-page { padding: 96px var(--po-pad) 120px; }
.po-page > * + * { margin-block-start: 24px; }
.po-page .wp-block-post-title { margin-bottom: 40px; }
.po-page .wp-block-post-content a { color: var(--po-orbit); }
.po-page .wp-block-post-content a:hover { color: var(--po-burn); }
.po-post-list > li { padding-block: 32px; border-bottom: 1px solid var(--po-line); }
.po-post-list .wp-block-post-title a { text-decoration: none; }
.po-post-list .wp-block-post-excerpt { color: var(--po-muted); }
.po-404 h1 { max-width: 760px; }

/* Full-width canvas template: blocks start flush to the edges. */
.po-main > .wp-block-post-content > * { margin-block: 0; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
	:root { --po-pad: 40px; }
	.po-principle-top,
	.po-caps-grid,
	.po-crew { grid-template-columns: 1fr; }
	.po-cap { grid-template-columns: 40px 1fr 260px; }
	.po-crew-photo { min-height: 420px; }
	.po-crew-content { max-width: none; }
	.po-nav .wp-block-navigation__container { gap: 28px; }
}
@media (max-width: 900px) {
	.po-header .po-header-cta { display: none !important; }
	.po-hero { min-height: 0; }
	.po-display { font-size: 56px; }
	.po-h2 { font-size: 40px; }
	.po-cta-title { font-size: 48px; }
	.po-telemetry-grid { grid-template-columns: 1fr 1fr; }
	.po-cell:nth-child(3) { border-left: 0; padding-left: var(--po-pad); }
	.po-cell:nth-child(n+3) { border-top: 1px solid var(--po-hairline-dark); }
	.po-steps { grid-template-columns: 1fr; }
	.po-step { border-left: 0; padding: 32px 0 0; }
	.po-cap { grid-template-columns: 32px 1fr; gap: 24px; }
	.po-dash-list { grid-column: 2; }
	.po-method-head { flex-direction: column; align-items: flex-start; }
	.po-grid4 { grid-template-columns: 1fr; }
	.po-mstep,
	.po-mstep:nth-child(even) { padding: 32px 0; border-left: 0; }
	.po-domain-list { grid-template-columns: 1fr 1fr; }
	.po-footer-top { flex-direction: column; }
	.po-footer-cols { gap: 48px; flex-wrap: wrap; }
}
@media (max-width: 560px) {
	:root { --po-pad: 20px; }
	.po-logo span { font-size: 14px; letter-spacing: .18em; }
	.po-display { font-size: 40px; }
	.po-display br,
	.po-h2 br { display: none; }
	.po-hero-sub { font-size: 17px; }
	.po-hero .po-tag { font-size: 11px; letter-spacing: .08em; }
	.po-ctas,
	.po-ctas .wp-block-button,
	.po-cta-row .wp-block-buttons,
	.po-cta-row .wp-block-button { width: 100%; }
	.po-ctas .wp-block-button__link,
	.po-cta-row .wp-block-button__link { width: 100%; justify-content: center; }
	.po-h2,
	.po-h2-sm { font-size: 32px; }
	.po-cta-title { font-size: 36px; }
	.po-principle,
	.po-caps,
	.po-method,
	.po-cta { padding-block: 80px; }
	.po-crew-content { padding: 80px var(--po-pad); }
	.po-telemetry-grid { grid-template-columns: 1fr; }
	.po-cell { border-left: 0 !important; padding-left: var(--po-pad) !important; border-top: 1px solid var(--po-hairline-dark); }
	.po-diagram { min-height: 0; }
	.po-diagram figcaption { flex-direction: column; }
	.po-mstep { gap: 20px; }
	.po-domain-list { grid-template-columns: 1fr; }
	.po-footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
	.wp-block-button .wp-block-button__link { transition: none; }
	.wp-block-button .wp-block-button__link:hover { transform: none; }
}
