/*
 * ORBYT – WordPress layer on top of Astra and design.css:
 * header/footer in the ORBYT look, and components for the block-built subpages.
 */

/* ------------------------------------------------------------------ */
/* Base                                                                */
/* ------------------------------------------------------------------ */

body { background-color: var(--bg); }
body.locked { overflow: hidden; }
#page, .site-content, .ast-container, #primary, .site-main, .entry-content,
.ast-separate-container, .ast-plain-container { background: transparent !important; }
.site-content > .ast-container { max-width: none; padding: 0; display: block; }
#primary { margin: 0 !important; padding: 0 !important; }
.entry-content > * { margin-top: 0; margin-bottom: 0; }
.ast-single-post .entry-content, .entry-content { color: var(--fg); }
.entry-content p, .entry-content li { color: inherit; }
.entry-content :where(h1, h2, h3, h4) {
	font-family: var(--display);
	color: var(--fg);
	letter-spacing: -.035em;
	font-weight: 800;
	text-wrap: balance;
	hyphens: auto;
	-webkit-hyphens: auto;
	overflow-wrap: normal;
}
.entry-content a:not(.btn):not(.wp-block-button__link) { color: var(--fg); text-decoration: underline; text-decoration-color: var(--acc); text-underline-offset: .2em; }
.entry-content a:not(.btn):not(.wp-block-button__link):hover { color: var(--acc); }
/* story links: the design's own colours win over Astra's content link styles */
.entry-content .ob-story a { text-decoration: none; }
.entry-content .ob-story .btn-acc, .entry-content .ob-story .btn-light { color: #0b0b0f; }
.entry-content .ob-story .btn-ghost { color: var(--fg); }
/* the story's giant type is set by hand, no automatic hyphenation */
.entry-content .ob-story :is(h1, h2, h3) { hyphens: manual; -webkit-hyphens: manual; }
/* no z-index here: loader, cart drawer and dialogs inside must be able to cover the fixed header */
.ob-story { position: relative; }
#bg { z-index: 0; }

/* ------------------------------------------------------------------ */
/* Header (Astra header builder) – fixed, blurred like the original nav */
/* ------------------------------------------------------------------ */

#masthead {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
}
.admin-bar #masthead { top: 32px; }
@media (max-width: 782px) { .admin-bar #masthead { top: 46px; } }
#masthead .ast-primary-header-bar,
#masthead .main-header-bar {
	background: rgba(11, 11, 15, .6) !important;
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--line) !important;
	min-height: var(--nav);
}
#masthead .site-title a,
#masthead .site-title a:hover,
#masthead .site-title a:visited {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--display);
	font-weight: 800;
	font-size: 18px;
	letter-spacing: .08em;
	color: var(--fg);
}
/* logo mark: the acid "planet" with an orbit ring, as in the original */
#masthead .site-title a::before {
	content: '';
	width: 26px;
	height: 26px;
	flex: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none'%3E%3Ccircle cx='16' cy='16' r='6' fill='%23d7ff3a'/%3E%3Cellipse cx='16' cy='16' rx='14.5' ry='6' stroke='%23f3f1ea' stroke-width='2' transform='rotate(-24 16 16)'/%3E%3C/svg%3E") center / contain no-repeat;
}
#masthead .main-header-menu .menu-link {
	font-family: var(--body);
	font-size: 14px;
	font-weight: 500;
	color: var(--mute);
	padding-inline: 15px;
	transition: color .2s;
}
#masthead .main-header-menu .menu-item:hover > .menu-link,
#masthead .main-header-menu .current-menu-item > .menu-link { color: var(--fg); }
body .ast-builder-button-wrap .ast-custom-button {
	height: 42px;
	padding: 0 18px;
	display: inline-flex;
	align-items: center;
	border-radius: 999px;
	background: var(--acc);
	color: #0b0b0f;
	border: 0;
	font-family: var(--body);
	font-weight: 600;
	font-size: 14px;
	text-transform: none;
	letter-spacing: 0;
	transition: transform .3s var(--ease);
}
body .ast-builder-button-wrap .ast-custom-button:hover { background: var(--acc); color: #0b0b0f; transform: translateY(-2px); }

/* cart icon (Astra HTML element) */
.orbyt-cart {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid var(--line);
	display: grid;
	place-items: center;
	position: relative;
	color: var(--fg) !important;
	transition: border-color .2s;
}
.orbyt-cart:hover { border-color: var(--fg); }
.orbyt-cart::before {
	content: '';
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='21' r='1'/%3E%3Ccircle cx='19' cy='21' r='1'/%3E%3Cpath d='M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='21' r='1'/%3E%3Ccircle cx='19' cy='21' r='1'/%3E%3Cpath d='M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* mobile: round burger and a full-screen menu in the original style */
body .ast-mobile-header-wrap .menu-toggle {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid var(--line);
	background: transparent;
	display: grid;
	place-items: center;
	padding: 0;
}
.ast-mobile-svg { fill: var(--fg) !important; }
/* Astra's full-width mobile menu, styled as the original full-screen menu */
.ast-mobile-header-content,
.ast-mobile-header-wrap .ast-mobile-header-content,
.ast-mobile-popup-drawer .ast-mobile-popup-inner { background: var(--bg) !important; }
.ast-mobile-header-content { min-height: calc(100svh - var(--nav)); padding: 24px var(--gut) 40px; border-top: 1px solid var(--line); }
.ast-header-break-point .main-header-bar-navigation,
.ast-header-break-point .main-header-menu,
.ast-header-break-point .main-header-menu .menu-item { background: var(--bg) !important; border: 0 !important; }
.ast-header-break-point .main-header-menu { padding: 16px var(--gut) 32px; border-bottom: 1px solid var(--line) !important; }
.ast-header-break-point .main-header-menu .menu-link {
	font-family: var(--display);
	font-weight: 800;
	font-size: clamp(34px, 10vw, 56px);
	letter-spacing: -.03em;
	line-height: 1.15;
	color: var(--fg);
	border: 0 !important;
	padding-block: .1em;
}
.ast-mobile-popup-drawer .menu-toggle-close { color: var(--fg); }
.ast-mobile-header-content .ast-builder-button-wrap,
.ast-mobile-popup-drawer .ast-builder-button-wrap { margin-top: 24px; }

/* ------------------------------------------------------------------ */
/* Footer: giant wordmark, then copyright + legal links                */
/* ------------------------------------------------------------------ */

.site-footer, .site-footer [class*='-footer-wrap'] { background: var(--bg) !important; color: var(--mute); }
.site-footer { border-top: 1px solid var(--line); position: relative; z-index: 1; }
.site-footer a { color: var(--mute); font-size: 12px; }
.site-above-footer-inner-wrap { container-type: inline-size; }
.site-above-footer-inner-wrap > * { min-width: 0; }
.site-footer a:hover { color: var(--fg); }
.orbyt-wordmark {
	font-family: var(--display);
	font-weight: 800;
	font-size: min(26vw, 370px); /* fallback without container queries */
	font-size: 28cqi; /* fills the footer container, incl. the last letter's overhang */
	line-height: .8;
	letter-spacing: -.03em;
	padding-right: .03em; /* balances the trailing negative letter-spacing so it centres */
	color: rgba(255, 255, 255, .05);
	text-align: center;
	white-space: nowrap;
	margin: 6vh 0 0;
	user-select: none;
}
.site-below-footer-wrap { font-size: 12px; border-top: 1px solid var(--line); }
.site-footer .footer-nav-wrap .menu-link { padding: 0 8px; }

/* ------------------------------------------------------------------ */
/* Buttons in block content                                            */
/* ------------------------------------------------------------------ */

body .entry-content .wp-block-button .wp-block-button__link,
body .entry-content .wp-block-jetpack-button .wp-block-button__link,
body .entry-content .contact-form button[type='submit'] {
	display: inline-flex;
	align-items: center;
	height: 54px;
	padding: 0 24px;
	border-radius: 999px;
	background: var(--acc);
	color: #0b0b0f;
	border: 0;
	font-family: var(--body);
	font-weight: 600;
	font-size: 15px;
	text-transform: none;
	letter-spacing: 0;
	transition: transform .3s var(--ease);
}
body .entry-content .wp-block-button .wp-block-button__link:hover,
body .entry-content .contact-form button[type='submit']:hover { background: var(--acc); color: #0b0b0f; transform: translateY(-2px); }
body .entry-content .wp-block-buttons .wp-block-button.is-style-outline .wp-block-button__link.wp-element-button {
	background: transparent;
	color: var(--fg);
	border: 1px solid var(--line);
	border-radius: 999px;
}
body .entry-content .wp-block-buttons .wp-block-button.is-style-outline .wp-block-button__link.wp-element-button:hover { border-color: var(--fg); }

/* ------------------------------------------------------------------ */
/* Subpage components                                                  */
/* ------------------------------------------------------------------ */

.ob-wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--gut); }
.ob-section { padding: clamp(64px, 11vh, 120px) var(--gut); }
.ob-section > * { max-width: 1320px; margin-inline: auto; }
.ob-section + .ob-section { border-top: 1px solid var(--line); }

/* doubled selector beats Astra's `.entry-content > .wp-block-group` block padding (legal pages) */
.ob-pagehead, .entry-content > .wp-block-group.ob-pagehead { padding: calc(var(--nav) + clamp(48px, 10vh, 110px)) var(--gut) clamp(40px, 7vh, 80px); position: relative; overflow: hidden; }
.ob-pagehead > * { max-width: 1320px; margin-inline: auto; position: relative; }
.ob-pagehead::after { /* the orbit ring from the logo, drawn large */
	content: '';
	position: absolute;
	width: min(1100px, 160vw);
	aspect-ratio: 2.4;
	right: -18%;
	top: 8%;
	border: 2px solid var(--line);
	border-radius: 50%;
	transform: rotate(-24deg);
	pointer-events: none;
}
.ob-pagehead::before {
	content: '';
	position: absolute;
	width: clamp(70px, 12vw, 150px);
	aspect-ratio: 1;
	right: 16%;
	top: 34%;
	border-radius: 50%;
	background: var(--acc);
	box-shadow: 0 0 120px color-mix(in srgb, var(--acc) 35%, transparent);
	pointer-events: none;
}
@media (max-width: 700px) {
	.ob-pagehead::before { display: none; } /* too close to the long headline on phones; the ring stays */
	.ob-pagehead::after { top: 2%; }
}
.ob-pagehead h1 { font-size: clamp(44px, 10vw, 128px); line-height: .92; letter-spacing: -.045em; max-width: 11ch; }
.ob-lead { color: var(--mute); max-width: 520px; font-size: clamp(16px, 1.4vw, 19px); margin-top: 20px; }

.ob-eyebrow {
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--mute);
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
}
.ob-eyebrow::before { content: ''; width: 18px; height: 2px; border-radius: 2px; background: var(--acc); }
.entry-content .ob-h2 { font-size: clamp(34px, 7vw, 76px); line-height: .98; }
.entry-content .ob-h2 .dim, .dim { color: var(--mute); }

/* cards: same glass tiles as the tech stats */
.ob-cards { gap: 10px !important; margin-top: 40px; }
.ob-card {
	border: 1px solid var(--line);
	border-radius: var(--r);
	padding: 22px 20px !important;
	background: var(--card);
}
.ob-card h3 { font-size: 20px; letter-spacing: -.02em; margin-bottom: 8px; }
.ob-card p { color: var(--mute); font-size: 15px; }
.ob-card .ob-big { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 6vw, 64px); line-height: 1; letter-spacing: -.04em; color: var(--fg); margin-bottom: 12px; }
.ob-card .ob-big small { font-size: .38em; color: var(--acc); margin-left: 4px; letter-spacing: 0; }

/* colourway rows on the collection page */
.ob-colour {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	gap: 16px 32px;
	padding: 40px 0 !important;
	border-bottom: 1px solid var(--line);
}
.ob-colour > * { margin: 0 !important; }
.ob-colour h2 { font-size: clamp(64px, 15vw, 180px); line-height: .88; letter-spacing: -.055em; }
.ob-colour h2::after { content: '.'; color: var(--acc); }
.ob-colour p { color: var(--mute); max-width: 420px; grid-column: 1; }
.ob-colour .wp-block-buttons { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.ob-swatches { display: flex; gap: 6px; }
.ob-swatches i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .18); display: inline-block; }
@media (max-width: 700px) {
	.ob-colour { grid-template-columns: 1fr; }
	.ob-colour .wp-block-buttons { grid-column: 1; grid-row: auto; }
}

/* table-like spec list */
.ob-specs { border-top: 1px solid var(--line); margin-top: 32px; list-style: none; padding: 0; }
.ob-specs li { display: flex; justify-content: space-between; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); max-width: none; }
.ob-specs li strong { color: var(--fg); font-weight: 600; }
.ob-specs li span { color: var(--mute); text-align: right; }

/* team */
.ob-team { gap: 10px !important; margin-top: 40px; }
.ob-team .ob-card { padding-top: 92px !important; position: relative; }
.ob-avatar {
	position: absolute;
	top: 22px;
	left: 20px;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: var(--acc);
	color: #0b0b0f !important;
	font-family: var(--display);
	font-weight: 800;
	font-size: 16px !important;
	margin: 0 !important;
}
.ob-role { color: var(--acc) !important; font-size: 13px !important; font-weight: 600; margin-bottom: 10px; }

/* FAQ */
.ob-faq { margin-top: 32px; border-top: 1px solid var(--line); }
.ob-faq .wp-block-details { border-bottom: 1px solid var(--line); margin: 0; padding: 0; }
.ob-faq summary {
	list-style: none;
	cursor: pointer;
	padding: 22px 56px 22px 0;
	position: relative;
	font-family: var(--display);
	font-weight: 600;
	font-size: clamp(17px, 2vw, 22px);
	letter-spacing: -.02em;
	color: var(--fg);
}
.ob-faq summary::-webkit-details-marker { display: none; }
.ob-faq summary::after {
	content: '+';
	position: absolute;
	right: 0;
	top: 50%;
	translate: 0 -50%;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid var(--line);
	display: grid;
	place-items: center;
	font-family: var(--body);
	font-weight: 400;
	transition: transform .3s var(--ease), background .3s, color .3s;
}
.ob-faq details[open] summary::after { transform: rotate(45deg); background: var(--acc); color: #0b0b0f; border-color: var(--acc); }
.ob-faq details > :not(summary) { color: var(--mute); padding-bottom: 22px; max-width: 720px; }
.ob-faq + h2 { margin-top: 64px; }

/* contact + forms */
.ob-contact { gap: clamp(24px, 5vw, 64px) !important; }
.ob-facts p { margin: 0 0 20px; color: var(--mute); }
.ob-facts strong { display: block; color: var(--fg); font-family: var(--display); font-weight: 600; }
.ob-formcard { border: 1px solid var(--line); border-radius: 26px; padding: clamp(20px, 3vw, 32px) !important; background: var(--card); }
.entry-content .contact-form label { color: var(--fg); font-weight: 500; font-size: 14px; }
.entry-content .contact-form input:not([type='checkbox']):not([type='radio']):not([type='submit']),
.entry-content .contact-form textarea,
.entry-content .contact-form select {
	background: transparent;
	color: var(--fg);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 12px 14px;
	font: inherit;
	width: 100%;
}
.entry-content .contact-form :is(input, textarea, select):focus { outline: none; border-color: var(--acc); }

/* reviews marquee (block section on the front page) */
.ob-reviews { padding: 10vh 0 4vh; overflow: hidden; }
.ob-reviews .mq { display: flex; gap: 12px; width: max-content; animation: mq 46s linear infinite; }
.ob-reviews .mq:hover { animation-play-state: paused; }

/* final call to action band */
.ob-cta { text-align: left; padding-block: clamp(80px, 16vh, 160px) !important; }
.ob-cta h2 { font-size: clamp(40px, 9vw, 110px); line-height: .92; letter-spacing: -.045em; }

/* legal pages */
.ob-legal { max-width: 820px; }
.ob-legal h2 { font-size: 24px; margin: 40px 0 10px; letter-spacing: -.02em; }
.ob-legal p, .ob-legal li { color: var(--mute); }
.ob-note { border-left: 2px solid var(--acc); padding: 10px 14px; color: var(--fg) !important; background: var(--card); }

[id] { scroll-margin-top: calc(var(--nav) + 16px); }
:focus-visible { outline: 2px solid var(--acc) !important; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .ob-reviews .mq { animation: none; } }

/* round icon buttons and the cart badge (were part of the original nav) */
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; position: relative; transition: border-color .2s; }
.icon-btn:hover { border-color: var(--fg); }
.cart-count { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--acc); color: #000; font-size: 11px; font-weight: 600; display: grid; place-items: center; transform: scale(0); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.cart-count.on { transform: scale(1); }

/* 404 / search form */
.search-form .search-field,
.ast-search-menu-icon .search-field {
	background: transparent !important;
	color: var(--fg) !important;
	border: 1px solid var(--line) !important;
	border-radius: 999px;
	padding: 12px 18px;
}
.search-form .search-field:focus { border-color: var(--acc) !important; outline: none; }
.error-404 .page-title { font-family: var(--display); font-weight: 800; letter-spacing: -.035em; color: var(--fg); }
.error-404 { padding: calc(var(--nav) + 64px) var(--gut) 80px; }
