/*
Theme Name:   FWD Starter
Theme URI:    https://theforwardbrandco.com
Description:  Reusable GeneratePress child theme for client sites. Brand tokens live at the top of this file; swap them per site.
Author:       Mariano Alvarez
Template:     generatepress
Version:      0.29.4
Text Domain:  fwd-starter
*/

/* ------------------------------------------------------------------
   Brand tokens. Change these per site; everything below reads them.
   Current values: The Forward Brand Co. (Mariano, 2026-11-24).
   Colors and type inspired by skein.zeusstudio.dev, with Forward's
   own orange. Earlier version (Concept Orange charcoal) = 0.3.1.
   ------------------------------------------------------------------ */
:root {
	--fwd-bg:          #0b1019; /* blue-black page */
	--fwd-panel:       #121a27; /* navy panels, inputs, footer */
	--fwd-panel-2:     #1a2333; /* raised panels, hover */
	--fwd-line:        #232c39; /* borders and rules */
	--fwd-text:        #ede4d3; /* warm cream text */
	--fwd-text-2:      #b9b2a5; /* secondary text */
	--fwd-accent:      #e08a3c; /* Forward orange */
	--fwd-accent-2:    #8b7355; /* amber tan, muted accent */
	--fwd-on-accent:   #0b1019; /* text on orange buttons */
	--fwd-font-head:   'Host Grotesk', 'Helvetica Neue', Arial, sans-serif;
	--fwd-font-body:   'Host Grotesk', 'Helvetica Neue', Arial, sans-serif;
	--fwd-font-mono:   'IBM Plex Mono', 'SF Mono', Menlo, Consolas, monospace;
	--fwd-radius:      4px;
	--fwd-max:         1140px;
}

/* ------------------------------------------------------------------
   Base
   ------------------------------------------------------------------ */
html, body {
	background: var(--fwd-bg);
}

body {
	color: var(--fwd-text);
	font-family: var(--fwd-font-body);
	font-size: 19px;
	font-weight: 400;
	line-height: 1.65;
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.entry-title a,
.main-title,
.main-title a,
.widget-title {
	font-family: var(--fwd-font-head);
	color: var(--fwd-text);
	line-height: 1.2;
}

h1, h2, h3, h4, h5, h6,
.entry-title {
	font-weight: 400;
	letter-spacing: -0.035em;
}

h1, .entry-title { font-size: clamp(2.6rem, 5vw, 4.2rem); line-height: 1.02; }
h2 { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.05; }
h3 { font-size: 1.5rem; line-height: 1.15; letter-spacing: -0.02em; }

.main-title,
.main-title a {
	font-weight: 500;
	letter-spacing: -0.02em;
}

p, li, .entry-meta, .entry-summary, .page-header {
	color: var(--fwd-text);
}

.entry-meta,
.entry-meta a,
.wp-caption-text,
figcaption,
small {
	color: var(--fwd-text-2);
}

a { color: var(--fwd-accent); }
a:hover, a:focus { color: var(--fwd-text); }

hr { border-color: var(--fwd-line); background: var(--fwd-line); }

::selection { background: var(--fwd-accent); color: var(--fwd-on-accent); }

/* ------------------------------------------------------------------
   GeneratePress containers: drop the default white boxes
   ------------------------------------------------------------------ */
.site,
.site-content,
.inside-article,
.separate-containers .inside-article,
.separate-containers .comments-area,
.separate-containers .page-header,
.separate-containers .paging-navigation,
.one-container .site-content,
.sidebar .widget,
.separate-containers .widget,
.comments-area {
	background: transparent;
	color: var(--fwd-text);
}

/* ------------------------------------------------------------------
   Header and navigation
   ------------------------------------------------------------------ */
.site-header {
	background: var(--fwd-bg);
	border-bottom: 1px solid var(--fwd-line);
}

.main-navigation,
.main-navigation ul ul {
	background: var(--fwd-bg);
}

.main-navigation .main-nav ul li a,
.menu-toggle {
	color: var(--fwd-text);
	font-family: var(--fwd-font-body);
}

.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li.current-menu-item > a,
.main-navigation .main-nav ul li[class*="current-menu-"] > a,
.main-navigation .main-nav ul li.current_page_item > a {
	color: var(--fwd-accent);
	background: transparent;
}

/* Dropdowns: a bordered panel so they don't blend into the page */
@media (min-width: 769px) {
	.main-navigation ul ul {
		background: var(--fwd-panel);
		border: 1px solid var(--fwd-line);
		border-radius: var(--fwd-radius);
		box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
		padding: 0.4rem 0;
		width: 240px;
	}
	.main-navigation .main-nav ul ul li a {
		font-size: 0.9375rem;
		padding: 0.55rem 1.1rem;
		line-height: 1.4;
	}
}

/* ------------------------------------------------------------------
   Buttons (core, GenerateBlocks, forms)
   ------------------------------------------------------------------ */
.wp-block-button__link,
.gb-button,
button,
.button,
input[type="submit"],
input[type="button"] {
	background: var(--fwd-accent);
	color: var(--fwd-on-accent);
	border: 0;
	border-radius: var(--fwd-radius);
	font-family: var(--fwd-font-body);
	font-weight: 600;
}

.wp-block-button__link:hover,
.gb-button:hover,
button:hover,
.button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
	background: var(--fwd-text);
	color: var(--fwd-on-accent);
}

.wp-block-button.is-style-outline a.wp-block-button__link:not(.has-background) {
	background: transparent;
	color: var(--fwd-accent);
	border: 1px solid var(--fwd-accent);
}

.wp-block-button.is-style-outline a.wp-block-button__link:not(.has-background):hover {
	background: var(--fwd-accent);
	color: var(--fwd-on-accent);
}

/* ------------------------------------------------------------------
   Forms
   ------------------------------------------------------------------ */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="password"],
input[type="number"],
textarea,
select {
	background: var(--fwd-panel);
	color: var(--fwd-text);
	border: 1px solid var(--fwd-line);
	border-radius: var(--fwd-radius);
}

input:focus,
textarea:focus,
select:focus {
	border-color: var(--fwd-accent);
	outline: none;
}

::placeholder { color: var(--fwd-text-2); }

/* ------------------------------------------------------------------
   The "console" layer: mono labels and code
   Use class "fwd-label" on a paragraph or heading for a small
   terminal-style eyebrow above a section title.
   ------------------------------------------------------------------ */
code, kbd, pre, .fwd-mono {
	font-family: var(--fwd-font-mono);
}

.fwd-label {
	font-family: var(--fwd-font-mono);
	font-weight: 500;
	font-size: 1rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--fwd-accent);
	margin-bottom: 0.5rem;
}

* + .fwd-label {
	margin-top: 3rem;
}

pre {
	margin-top: 1.5rem;
	background: var(--fwd-panel);
	border: 1px solid var(--fwd-line);
	border-left: 3px solid var(--fwd-accent);
	color: var(--fwd-text);
	border-radius: var(--fwd-radius);
	font-size: 0.95rem;
}

code {
	background: var(--fwd-panel);
	color: var(--fwd-text);
	padding: 0.1em 0.35em;
	border-radius: 3px;
}

/* ------------------------------------------------------------------
   Panels and quotes
   ------------------------------------------------------------------ */
.fwd-panel {
	background: var(--fwd-panel);
	border: 1px solid var(--fwd-line);
	border-radius: var(--fwd-radius);
	padding: 1.5rem;
}

blockquote,
.wp-block-quote {
	border-left: 3px solid var(--fwd-accent);
	color: var(--fwd-text);
}

/* ------------------------------------------------------------------
   Sidebar widgets and search
   ------------------------------------------------------------------ */
.widget ul li { border-color: var(--fwd-line); }

/* ------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------ */
.site-footer,
.site-info,
.footer-widgets {
	background: var(--fwd-panel);
	color: var(--fwd-text-2);
	border-top: 1px solid var(--fwd-line);
}

.site-info a,
.footer-widgets a { color: var(--fwd-text); }
.site-info a:hover,
.footer-widgets a:hover { color: var(--fwd-accent); }

/* ------------------------------------------------------------------
   Logo: "fwd >_" (markup from site/forward.php)
   ------------------------------------------------------------------ */
.fwd-logo,
.fwd-logo a {
	font-family: var(--fwd-font-mono);
	font-weight: 400;
	font-size: 1.75rem;
	letter-spacing: 0;
	line-height: 1;
	color: var(--fwd-text);
	text-decoration: none;
	white-space: nowrap;
}

.fwd-logo a:hover .fwd-logo__word { color: var(--fwd-text); }

.fwd-logo__prompt { /* >_ is the logomark itself (same shape and weight as the icon), sized to the type */
	color: var(--fwd-accent);
	height: 0.86em;
	width: 1.003em;
	margin-left: 0.3em; /* half a monospace character */
	vertical-align: -0.1em;
	overflow: visible;
}

.fwd-logo a {
	display: inline-flex;
	align-items: baseline; /* the name sits on the same line as fwd >_, not centered against it */
	gap: 0.9rem;
}

.fwd-logo__name {
	font-family: var(--fwd-font-body);
	font-weight: 500;
	font-size: 1.0625rem;
	letter-spacing: -0.01em;
	color: var(--fwd-text);
	padding-left: 0.9rem;
	border-left: 1px solid var(--fwd-line);
	line-height: 1.6rem;
}

.fwd-logo__cursor {
	animation: fwd-blink 1.06s steps(1) infinite;
}

@keyframes fwd-blink {
	50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.fwd-logo__cursor { animation: none; }
}

/* ------------------------------------------------------------------
   Page sections (homepage and landing pages)
   Use on full-width pages: GeneratePress "Content Container: Full width",
   page title hidden. Each section is a core Group block with a class.
   ------------------------------------------------------------------ */
.fwd-section {
	max-width: var(--fwd-max);
	margin: 0 auto;
	padding: clamp(56px, 8vw, 104px) clamp(20px, 4vw, 48px);
}

.fwd-band {
	background: var(--fwd-panel);
	border-top: 1px solid var(--fwd-line);
	border-bottom: 1px solid var(--fwd-line);
}

.fwd-band > .fwd-section { padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 104px); }

.fwd-section > *:first-child { margin-top: 0; }
.fwd-section h2 { max-width: 22ch; margin-bottom: 1.5rem; }
.fwd-section p { max-width: 62ch; }

/* Hero */
.fwd-hero { padding-top: clamp(72px, 12vw, 160px); }
.fwd-hero h1 {
	font-size: clamp(2.8rem, 6.4vw, 5.6rem);
	line-height: 0.98;
	letter-spacing: -0.045em;
	max-width: 15ch;
	margin-bottom: 1.75rem;
}
.fwd-hero h1 .fwd-dim, .fwd-blog-head h1 .fwd-dim { color: var(--fwd-text-2); }
.fwd-section .fwd-lead,
.fwd-lead {
	font-size: clamp(1.15rem, 1.6vw, 1.35rem);
	line-height: 1.55;
	color: var(--fwd-text-2);
	max-width: 46ch;
	margin-bottom: 2.25rem;
}
.fwd-hero .wp-block-buttons { gap: 12px; }

/* Pull line */
.fwd-section .fwd-pull,
.fwd-pull {
	font-size: clamp(1.4rem, 2.4vw, 1.9rem);
	line-height: 1.3;
	letter-spacing: -0.02em;
	color: var(--fwd-text);
	max-width: 30ch;
	margin-top: 2.5rem;
	padding-left: 1.25rem;
	border-left: 3px solid var(--fwd-accent);
}

/* Three steps */
.fwd-steps { gap: 20px; margin-top: 2.5rem; }
.fwd-step {
	background: var(--fwd-panel);
	border: 1px solid var(--fwd-line);
	border-radius: var(--fwd-radius);
	padding: 28px 26px 30px;
}
.fwd-band .fwd-step { background: var(--fwd-bg); }
.fwd-step h3 { margin: 0.25rem 0 0.75rem; }
.fwd-step p { font-size: 1.0625rem; color: var(--fwd-text-2); margin: 0; }
.fwd-step .fwd-label { margin: 0; }
.fwd-note { font-size: 1.1875rem; color: var(--fwd-text); margin-top: 2.25rem; max-width: 60ch; }

/* Rules list */
ol.fwd-rules {
	list-style: none;
	counter-reset: fwd-rule;
	margin: 2rem 0 0;
	padding: 0;
	max-width: 46rem;
}
ol.fwd-rules li {
	counter-increment: fwd-rule;
	display: grid;
	grid-template-columns: 3.5rem 1fr;
	align-items: baseline;
	padding: 1.1rem 0;
	border-top: 1px solid var(--fwd-line);
	font-size: clamp(1.15rem, 1.8vw, 1.4rem);
	letter-spacing: -0.015em;
	line-height: 1.35;
}
ol.fwd-rules li:last-child { border-bottom: 1px solid var(--fwd-line); }
ol.fwd-rules li::before {
	content: counter(fwd-rule, decimal-leading-zero);
	font-family: var(--fwd-font-mono);
	font-size: 1rem;          /* same size, weight and spacing as the // labels */
	font-weight: 500;
	letter-spacing: 0.05em;
	color: var(--fwd-accent);
}
/* Numbered list with a bold lead and a body-size explanation */
ol.fwd-rules--qa li {
	font-size: 1.1875rem;
	letter-spacing: 0;
	line-height: 1.6;
}
ol.fwd-rules--qa li strong {
	display: block;
	font-weight: 500;
	font-size: clamp(1.15rem, 1.8vw, 1.4rem);
	letter-spacing: -0.015em;
	line-height: 1.35;
	margin-bottom: 0.4rem;
}

/* About */
.fwd-sign {
	font-family: var(--fwd-font-mono);
	font-size: 0.875rem;
	color: var(--fwd-text-2);
	margin-top: 1.5rem;
}

/* Placeholder card (pre-launch only) */
.fwd-placeholder {
	border: 1px dashed var(--fwd-line);
	border-radius: var(--fwd-radius);
	padding: 28px 26px;
	color: var(--fwd-text-2);
	font-family: var(--fwd-font-mono);
	font-size: 0.9rem;
	max-width: 46rem;
}

/* Closing call to action */
.fwd-cta h2 { max-width: 20ch; }

@media (max-width: 768px) {
	.fwd-steps { flex-direction: column; }
	ol.fwd-rules li { grid-template-columns: 2.75rem 1fr; }
}

/* Long headlines never push the page sideways on phones. */
h1, h2, .entry-title { overflow-wrap: break-word; }
@media (max-width: 480px) {
	.fwd-hero h1 { font-size: 2.5rem; letter-spacing: -0.035em; }
	.fwd-section { padding-left: 20px; padding-right: 20px; }
	.fwd-logo, .fwd-logo a { font-size: 1.35rem; }
	.fwd-logo a { gap: 0.65rem; }
	.fwd-logo__name { font-size: 0.9375rem; padding-left: 0.65rem; }
}

/* ------------------------------------------------------------------
   Lists inside cards, prices, FAQ accordions, forms
   ------------------------------------------------------------------ */
.fwd-step ul {
	margin: 1rem 0 0 1.1rem;
	padding: 0;
	font-size: 1.0625rem;
	color: var(--fwd-text-2);
}
.fwd-step ul li { margin-bottom: 0.45rem; }
.fwd-step .fwd-price {
	font-family: var(--fwd-font-mono);
	font-weight: 500;
	color: var(--fwd-accent);
	font-size: 1.05rem;
	margin: 0.25rem 0 0.9rem;
}
.fwd-step .fwd-fit { color: var(--fwd-text); margin-bottom: 0.25rem; }

ul.fwd-list {
	margin: 1.5rem 0 0 1.2rem;
	max-width: 46rem;
}
ul.fwd-list li { margin-bottom: 0.6rem; }

/* FAQ: core Details blocks */
.fwd-faq { max-width: 50rem; margin-top: 2rem; }
.fwd-faq details {
	border-top: 1px solid var(--fwd-line);
	padding: 1.1rem 0;
}
.fwd-faq details:last-child { border-bottom: 1px solid var(--fwd-line); }
.fwd-faq summary {
	cursor: pointer;
	font-size: clamp(1.1rem, 1.6vw, 1.3rem);
	letter-spacing: -0.01em;
	list-style: none;
	display: flex;
	justify-content: space-between;
	gap: 1rem;
}
.fwd-faq summary::-webkit-details-marker { display: none; }
.fwd-faq summary::after {
	content: "+";
	font-family: var(--fwd-font-mono);
	color: var(--fwd-accent);
}
.fwd-faq details[open] summary::after { content: "−"; }
.fwd-faq details p { margin: 0.9rem 0 0; color: var(--fwd-text-2); max-width: 60ch; }

/* WPForms on the dark theme */
.fwd-form { max-width: 40rem; margin-top: 2rem; }
.wpforms-container {
	--wpforms-field-background-color: var(--fwd-bg);
	--wpforms-field-border-color: var(--fwd-line);
	--wpforms-field-text-color: var(--fwd-text);
	--wpforms-label-color: var(--fwd-text);
	--wpforms-label-sublabel-color: var(--fwd-text-2);
	--wpforms-label-error-color: #f0a37a;
	--wpforms-button-background-color: var(--fwd-accent);
	--wpforms-button-text-color: var(--fwd-on-accent);
	--wpforms-button-border-radius: var(--fwd-radius);
	--wpforms-field-border-radius: var(--fwd-radius);
	--wpforms-label-size-font-size: 16px;
	--wpforms-field-size-font-size: 17px;
}
.wpforms-container .wpforms-field-label { font-weight: 500; }
.wpforms-container input,
.wpforms-container textarea {
	background: var(--fwd-bg) !important;
	color: var(--fwd-text) !important;
	border: 1px solid var(--fwd-line) !important;
}
.wpforms-container .wpforms-submit {
	background: var(--fwd-accent) !important;
	color: var(--fwd-on-accent) !important;
	font-weight: 600 !important;
}
.wpforms-confirmation-container-full {
	background: var(--fwd-panel) !important;
	border: 1px solid var(--fwd-accent) !important;
	color: var(--fwd-text) !important;
}
.fwd-form .wpforms-container,
.fwd-form .wpforms-container-full { margin: 0 !important; padding: 0 !important; }
.fwd-form .wpforms-form { padding: 0 !important; }
.fwd-steps + .fwd-steps { margin-top: 20px; }

/* Menu: last item as a small orange button (add class "fwd-menu-cta" to the menu item) */
.main-navigation .main-nav ul li a { font-size: 1rem; }
.main-navigation .main-nav ul li.fwd-menu-cta > a {
	background: var(--fwd-accent);
	color: var(--fwd-on-accent);
	border-radius: var(--fwd-radius);
	line-height: 2.5rem;
	padding: 0 1.1rem;
	margin-left: 0.75rem;
	font-weight: 600;
}
.main-navigation .main-nav ul li.fwd-menu-cta > a:hover {
	background: var(--fwd-text);
	color: var(--fwd-on-accent);
}
@media (max-width: 768px) {
	.main-navigation .main-nav ul li.fwd-menu-cta > a { margin: 0.5rem 0 0.75rem 1.25rem; display: inline-block; }
}

/* GeneratePress pads every nested group's inner container by 40px;
   our sections handle their own spacing, so remove it. */
.fwd-section > .wp-block-group__inner-container,
.fwd-band > .wp-block-group__inner-container,
.fwd-faq > .wp-block-group__inner-container,
.fwd-form > .wp-block-group__inner-container { padding: 0; }

/* ------------------------------------------------------------------
   Blog: single posts and the blog index
   ------------------------------------------------------------------ */
.single-post .site-main,
.blog .site-main,
.archive .site-main {
	max-width: 780px;
	margin-left: auto;
	margin-right: auto;
	padding: 0 clamp(20px, 4vw, 48px);
}
.single-post .inside-article,
.blog .inside-article,
.archive .inside-article {
	background: transparent;
	padding: 0;
}
.single-post .inside-article { padding-top: clamp(48px, 7vw, 96px); }
.single-post .entry-header {
	margin-bottom: 2.5rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid var(--fwd-line);
}
.single-post .entry-title {
	font-size: clamp(2.2rem, 4.4vw, 3.4rem);
	line-height: 1.08;
	margin-bottom: 1rem;
}
.entry-meta,
.entry-meta a {
	font-family: var(--fwd-font-mono);
	font-size: 0.875rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--fwd-text-2);
}
.entry-meta a:hover { color: var(--fwd-accent); }
.single-post .entry-content h2 {
	font-size: clamp(1.55rem, 2.6vw, 2rem);
	line-height: 1.2;
	margin: 2.75rem 0 1rem;
}
.single-post .entry-content h3 {
	font-size: 1.35rem;
	line-height: 1.3;
	margin: 2rem 0 0.75rem;
}
.single-post .entry-content h4 {
	font-family: var(--fwd-font-mono);
	font-size: 0.9375rem;
	font-weight: 400;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--fwd-accent);
	margin: 2rem 0 0.6rem;
}
/* "The Bottom Line" summary at the top of a post */
.single-post .entry-content > h4:first-child { margin-top: 0; }
.single-post .entry-content > h4:first-child + p {
	background: var(--fwd-panel);
	border-left: 3px solid var(--fwd-accent);
	border-radius: var(--fwd-radius);
	padding: 1.25rem 1.5rem;
	margin-bottom: 2.5rem;
}
.single-post .entry-content a {
	color: var(--fwd-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.single-post .entry-content ul,
.single-post .entry-content ol { margin: 0 0 1.5em 1.4em; }
.single-post .entry-content li { margin-bottom: 0.5em; }
.single-post .entry-content li > p { margin-bottom: 0.4em; }
.single-post .entry-content blockquote {
	border-left: 3px solid var(--fwd-accent);
	margin: 2rem 0;
	padding: 0.25rem 0 0.25rem 1.5rem;
	font-style: normal;
	color: var(--fwd-text);
}
.single-post .entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5rem 0 2rem;
	font-size: 1rem;
}
.single-post .entry-content th,
.single-post .entry-content td {
	border-bottom: 1px solid var(--fwd-line);
	padding: 0.65rem 0.75rem 0.65rem 0;
	text-align: left;
	vertical-align: top;
}
.single-post .entry-content th {
	font-family: var(--fwd-font-mono);
	font-size: 0.8125rem;
	font-weight: 400;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--fwd-text-2);
}
.single-post footer.entry-meta {
	margin-top: 3rem;
	padding: 1.5rem 0 clamp(48px, 7vw, 96px);
	border-top: 1px solid var(--fwd-line);
}
.single-post .post-navigation a { color: var(--fwd-text); text-transform: none; letter-spacing: 0; font-family: var(--fwd-font-body); font-size: 1rem; }
.single-post .post-navigation a:hover { color: var(--fwd-accent); }

/* Blog index */
.fwd-blog-head {
	padding: clamp(56px, 8vw, 104px) 0 1.5rem;
}
.fwd-blog-head h1 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); line-height: 1.05; margin-bottom: 1rem; }
.blog article,
.archive article {
	border-top: 1px solid var(--fwd-line);
	padding: 2.25rem 0;
}
.blog .entry-title,
.archive .entry-title { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.2; margin-bottom: 0.5rem; }
.blog .entry-title a,
.archive .entry-title a { color: var(--fwd-text); }
.blog .entry-title a:hover,
.archive .entry-title a:hover { color: var(--fwd-accent); }
.blog .entry-summary,
.archive .entry-summary { margin-top: 0.75rem; color: var(--fwd-text-2); }
.blog footer.entry-meta,
.archive footer.entry-meta { margin-top: 0.75rem; }
.blog .site-main,
.archive .site-main { padding-bottom: clamp(56px, 8vw, 104px); }
.archive .page-header {
	background: transparent;
	padding: clamp(56px, 8vw, 104px) 0 1.5rem;
}

/* Featured images: one shape everywhere */
.featured-image img,
.post-image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: var(--fwd-radius);
}
.single-post .featured-image { margin: 0 0 2.5rem; }
.blog .post-image,
.archive .post-image { margin: 0 0 1.25rem; }
.blog .post-image a,
.archive .post-image a { display: block; }
.blog .post-image img,
.archive .post-image img { transition: opacity 0.2s ease; }
.blog .post-image a:hover img,
.archive .post-image a:hover img { opacity: 0.85; }

/* Signals animation (assets/fwd-signals.js): sources → one story → search and AI */
.fwd-signals { margin: 2.5rem 0 1rem; min-height: 280px; }
.fwd-signals.is-built { min-height: 0; }
.fwd-signals svg {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
	opacity: 0;
	transition: opacity 0.9s ease;
}
.fwd-signals.is-visible svg { opacity: 1; }
.fwd-signals__path {
	fill: none;
	stroke: var(--fwd-text-2);
	stroke-opacity: 0.32;
	stroke-width: 1.2;
	stroke-dasharray: 3 6;
}
.fwd-signals__node {
	fill: var(--fwd-bg);
	stroke: var(--fwd-text-2);
	stroke-opacity: 0.7;
	stroke-width: 1.2;
	transition: fill 0.4s ease, stroke 0.4s ease;
}
.fwd-band .fwd-signals__node { fill: var(--fwd-panel); }
.fwd-signals__node.is-lit { fill: var(--fwd-accent); stroke: var(--fwd-accent); stroke-opacity: 1; }
.fwd-signals__label,
.fwd-signals__title,
.fwd-signals__center,
.fwd-signals__glyph { font-family: var(--fwd-font-mono); }
.fwd-signals__label { fill: var(--fwd-text-2); }
.fwd-signals__title { fill: var(--fwd-accent); letter-spacing: 0.06em; text-transform: uppercase; }
.fwd-signals__center { fill: var(--fwd-text); }
.fwd-signals__plate { fill: var(--fwd-bg); }
.fwd-band .fwd-signals__plate { fill: var(--fwd-panel); }
.fwd-signals__core { fill: var(--fwd-accent); }
.fwd-signals__glyph { fill: var(--fwd-on-accent); font-weight: 500; }
.fwd-signals__pulse { fill: var(--fwd-accent); }
.fwd-signals__glow { fill: var(--fwd-accent); fill-opacity: 0.2; }
.fwd-signals__ring {
	fill: none;
	stroke: var(--fwd-accent);
	stroke-width: 1.2;
	opacity: 0;
	transform-box: fill-box;
	transform-origin: center;
}
.fwd-signals__ring.is-on { animation: fwd-ripple 1.6s ease-out; }
@keyframes fwd-ripple {
	from { transform: scale(1); opacity: 0.7; }
	to   { transform: scale(3.4); opacity: 0; }
}

/* Footer (site/forward.php prints the columns) */
.fwd-footer {
	background: var(--fwd-panel);
	border-top: 1px solid var(--fwd-line);
	padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 5vw, 56px);
	color: var(--fwd-text-2);
	font-size: 1rem;
}
.fwd-footer__inner {
	max-width: var(--fwd-max);
	margin: 0 auto;
	padding: 0 clamp(20px, 4vw, 48px);
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr 1fr;
	gap: 40px;
}
.fwd-footer .fwd-logo { margin: 0 0 1rem; }
.fwd-footer p { margin: 0 0 0.75rem; line-height: 1.55; }
.fwd-footer .fwd-label { margin: 0 0 1rem; }
.fwd-footer ul { list-style: none; margin: 0; padding: 0; }
.fwd-footer li { margin: 0 0 0.55rem; }
.fwd-footer a { color: var(--fwd-text); text-decoration: none; }
.fwd-footer a:hover { color: var(--fwd-accent); }
.fwd-footer__areas { font-family: var(--fwd-font-mono); font-size: 0.8125rem; letter-spacing: 0.02em; }
.fwd-footer__audit { margin-top: 1.25rem; }
.fwd-footer__audit a { color: var(--fwd-accent); }
.fwd-footer + .site-footer .site-info { border-top: 1px solid var(--fwd-line); }
@media (max-width: 900px) {
	.fwd-footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
	.fwd-footer__inner { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
	.fwd-footer__inner > :first-child { grid-column: 1 / -1; }
}

/* Flag gradient (assets/fwd-flag.js): soft waving gradient with grain behind a block */
.fwd-flag { position: relative; overflow: hidden; isolation: isolate; }
.fwd-flag__canvas,
.fwd-flag__grain {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}
.fwd-flag__canvas { z-index: -2; }
.fwd-flag__grain {
	z-index: -1;
	opacity: 0.16;
	mix-blend-mode: overlay;
	background-size: 160px 160px;
}

/* Sphere (assets/fwd-sphere.js): turning network sphere, used in the homepage hero */
.fwd-hero:has(.fwd-sphere) { position: relative; }
.fwd-hero > :not(.fwd-sphere) { position: relative; z-index: 1; }
.fwd-sphere {
	position: absolute;
	z-index: 0;
	top: clamp(-140px, -9.5vw, -40px);   /* 0.29.0: sits around the headline (measured from the hero's content box) so the whole sphere shows on the first screen */
	right: -6%;
	--fwd-sphere-size: min(680px, 52vw, max(420px, calc(100vh - 170px)));
	width: var(--fwd-sphere-size);
	height: var(--fwd-sphere-size);   /* 0.29.1: explicit height; Safari squashed the sphere when it relied on aspect-ratio */
	pointer-events: none;
	opacity: 0;
	transition: opacity 1.6s ease;
}
.fwd-sphere.is-built { opacity: 1; }
.fwd-sphere canvas { display: block; width: 100%; height: 100%; }
html, body { overflow-x: clip; }
@media (max-width: 768px) {
	.fwd-sphere {
		top: 0;
		right: -38%;
		--fwd-sphere-size: 115vw;
		transform: none;
	}
	.fwd-sphere.is-built { opacity: 0.4; }
}

/* Legal pages (privacy policy): one column, calmer headings */
.fwd-legal h2 {
	font-size: clamp(1.4rem, 2.2vw, 1.75rem);
	margin-top: 2.75rem;
	margin-bottom: 0.85rem;
}
.fwd-legal .fwd-note { margin-bottom: 1rem; }
.fwd-legal ul { margin-bottom: 1.25rem; }

/* Light pages (body.fwd-light, set per page with _fwd_theme = light).
   Same brand, daylight version: warm paper, ink text, a deeper orange so
   orange text stays readable. Header, menus and footer stay dark. */
body.fwd-light {
	--fwd-bg:        #f6f1e7; /* warm paper */
	--fwd-panel:     #ece4d4; /* sand panels and bands */
	--fwd-panel-2:   #e3d9c5;
	--fwd-line:      #d5cab4;
	--fwd-text:      #0b1019; /* the dark page color, now the ink */
	--fwd-text-2:    #4a5060;
	--fwd-accent:    #a9540f; /* deeper Forward orange: about 5:1 on the paper, readable as small text */
	--fwd-on-accent: #0b1019;
}
body.fwd-light .fwd-footer,
body.fwd-light .site-footer {
	--fwd-bg:        #0b1019;
	--fwd-panel:     #121a27;
	--fwd-panel-2:   #1a2333;
	--fwd-line:      #232c39;
	--fwd-text:      #ede4d3;
	--fwd-text-2:    #b9b2a5;
	--fwd-accent:    #e08a3c;
}

/* Featured plan: a badge on the card's top edge, so every card's
   number, name and price line up */
.fwd-step--featured { position: relative; border-color: var(--fwd-accent); }
.fwd-section .fwd-badge,
.fwd-badge {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translate(-50%, -50%);
	margin: 0;
	padding: 0.3rem 0.75rem;
	background: #0b1019;              /* ink, on both themes */
	color: #f6f1e7;                   /* lightest cream */
	border: 1px solid var(--fwd-accent);
	font-family: var(--fwd-font-mono);
	font-weight: 500;
	font-size: 0.8125rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1.4;
	border-radius: var(--fwd-radius);
	white-space: nowrap;
}

/* Light pages: the header and its menus stay in the dark theme */
body.fwd-light .site-header,
body.fwd-light .main-navigation,
body.fwd-light #mobile-header,
body.fwd-light .main-navigation .main-nav ul ul {
	--fwd-bg:        #0b1019;
	--fwd-panel:     #121a27;
	--fwd-panel-2:   #1a2333;
	--fwd-line:      #232c39;
	--fwd-text:      #ede4d3;
	--fwd-text-2:    #b9b2a5;
	--fwd-accent:    #e08a3c;
	--fwd-on-accent: #0b1019;
}
body.fwd-light .main-navigation .main-nav ul ul { box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45); }

/* Sticky header: stays at the top while scrolling, and slims down once the
   page moves (body.fwd-scrolled is set by a small script in functions.php). */
.site-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 100;
	transition: box-shadow 0.25s ease;
}
.site-header .inside-header { transition: padding 0.25s ease; }
.main-navigation .main-nav ul li a { transition: line-height 0.25s ease, color 0.2s ease; }
.fwd-logo, .fwd-logo a { transition: font-size 0.25s ease; }
body.fwd-scrolled .site-header { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35); }
body.fwd-scrolled .site-header .inside-header { padding-top: 6px; padding-bottom: 6px; }
body.fwd-scrolled .main-navigation .main-nav > ul > li > a { line-height: 46px; }
body.fwd-scrolled .main-navigation .main-nav > ul > li.fwd-menu-cta > a { line-height: 2.25rem; }
body.fwd-scrolled .fwd-logo,
body.fwd-scrolled .fwd-logo a { font-size: 1.35rem; }
@media (max-width: 768px) {
	.site-header .main-navigation.toggled .main-nav {
		max-height: calc(100vh - 80px);
		overflow-y: auto;
	}
}

/* Mono marks: half-character gaps. A monospace space is as wide as a letter,
   which makes "// label" and "fwd >_" fall apart. Both use 0.3em instead. */
.fwd-slashes { margin-right: 0.3em; }

/* Results lists (unordered fwd-rules--qa): bold result on its own line, detail under it */
ul.fwd-rules--qa {
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
	max-width: 62ch;
}
ul.fwd-rules--qa li {
	padding: 1rem 0;
	border-top: 1px solid var(--fwd-line);
	color: var(--fwd-text-2);
	font-size: 1.0625rem;
	line-height: 1.55;
}
ul.fwd-rules--qa li:last-child { border-bottom: 1px solid var(--fwd-line); }
ul.fwd-rules--qa li strong {
	display: block;
	color: var(--fwd-text);
	font-weight: 500;
	font-size: clamp(1.1rem, 1.7vw, 1.3rem);
	letter-spacing: -0.01em;
	line-height: 1.35;
	margin-bottom: 0.3rem;
}

/* Two-line headings: <span class="fwd-line"> starts the second line visually.
   One heading for search engines; the leading space inside the span keeps the
   words apart when CSS isn't applied (feeds, AI readers). */
.fwd-line { display: block; }

/* Homepage hero: the big headline is a styled paragraph (.fwd-display) so the
   page's one H1 can carry the topic and place (.fwd-kicker), shown as a small
   mono line under the headline. Visually the hero is unchanged. */
.fwd-section .fwd-display,
.fwd-display {
	font-family: var(--fwd-font-head);
	font-weight: 400;
	color: var(--fwd-text);
	font-size: clamp(2.8rem, 6.4vw, 5.6rem);
	line-height: 0.98;
	letter-spacing: -0.045em;
	max-width: 15ch;
	margin: 0 0 1rem;
}
.fwd-display .fwd-dim { color: var(--fwd-text-2); }
.fwd-section h1.fwd-kicker,
h1.fwd-kicker {
	font-family: var(--fwd-font-mono);
	font-weight: 500;
	font-size: 1rem;
	line-height: 1.5;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--fwd-accent);   /* same orange as the line above: the two frame the headline */
	max-width: none;
	margin: 0 0 3rem;           /* the space goes before the paragraph, not above this line */
}
h1.fwd-kicker::before { content: "//"; color: var(--fwd-accent); margin-right: 0.3em; }
@media (max-width: 480px) {
	.fwd-section .fwd-display, .fwd-display { font-size: 2.5rem; letter-spacing: -0.035em; }
}

/* Keep reading / articles on this (site/forward.php, 0.27.0) */
.fwd-related { margin-top: 3rem; }
.entry-content .fwd-related__list { list-style: none; margin: 1rem 0 0 !important; padding: 0 !important; border-top: 1px solid var(--fwd-line); }
.entry-content .fwd-related__list li { margin: 0 !important; list-style: none; padding: 0.9rem 0; border-bottom: 1px solid var(--fwd-line); }
.entry-content .fwd-related__list a { color: var(--fwd-text); text-decoration: none; font-weight: 500; }
.entry-content .fwd-related__list a:hover, .entry-content .fwd-related__list a:focus { color: var(--fwd-accent); }
.entry-content .fwd-related__service { margin-top: 1.25rem; color: var(--fwd-text-2); }


/* ------------------------------------------------------------------
   Motion (0.29.0, assets/fwd-motion.js). Opt-in per page: put the class
   "fwd-motion" on the hero group. Everything rests visible: the hero uses
   CSS animations only, and the script hides only what is still below the
   screen when it starts. Still for visitors who ask for reduced motion.
   ------------------------------------------------------------------ */
@keyframes fwd-rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes fwd-word { from { transform: translateY(112%); } }
.fwd-hero.fwd-motion > .fwd-label,
.fwd-hero.fwd-motion > .fwd-kicker,
.fwd-hero.fwd-motion > .fwd-lead,
.fwd-hero.fwd-motion > .wp-block-buttons { animation: fwd-rise 0.9s cubic-bezier(.2, .7, .2, 1) both; }
.fwd-hero.fwd-motion > .fwd-kicker { animation-delay: 0.4s; }
.fwd-hero.fwd-motion > .fwd-lead { animation-delay: 0.5s; }
.fwd-hero.fwd-motion > .wp-block-buttons { animation-delay: 0.6s; }
/* Headline words (wrapped by a content filter in functions.php) */
.fwd-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.fwd-w > span { display: inline-block; }
.fwd-motion .fwd-w > span { animation: fwd-word 0.7s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 35ms); }

/* Scroll reveal: classes are added by the script and taken off again when done */
.fwd-rv { opacity: 0; transform: translateY(18px); transition: opacity 0.8s cubic-bezier(.2, .7, .2, 1), transform 0.8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--fwd-d, 0ms); }
.fwd-rv.is-in { opacity: 1; transform: none; }

/* Cards lift and rules ease over on hover (pages with motion on) */
@media (hover: hover) and (pointer: fine) {
	body.fwd-motion-on .fwd-step:not(.fwd-rv) { transition: transform 0.35s cubic-bezier(.2, .7, .2, 1), border-color 0.35s ease; }
	body.fwd-motion-on .fwd-step:not(.fwd-rv):hover { transform: translateY(-6px); border-color: var(--fwd-accent); }
	body.fwd-motion-on ol.fwd-rules li:not(.fwd-rv) { transition: padding-left 0.55s cubic-bezier(.2, .7, .2, 1); }
	body.fwd-motion-on ol.fwd-rules li:not(.fwd-rv):hover { padding-left: 10px; }
}

/* Proof strip: two client results in large mono numbers. Numbers with
   data-fwd-count count up once when they come on screen. */
.fwd-proof { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: clamp(48px, 7vw, 88px); border-top: 1px solid var(--fwd-line); border-bottom: 1px solid var(--fwd-line); }
.fwd-proof > div { padding: 26px 0 28px; min-width: 0; display: flex; flex-direction: column; }
.fwd-proof > div + div { padding-left: 32px; border-left: 1px solid var(--fwd-line); }
.fwd-proof .fwd-label { font-size: 0.8125rem; margin: 0 0 0.9rem; }
.fwd-proof__num { font-family: var(--fwd-font-mono); font-weight: 300; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; color: var(--fwd-text); margin: 0; }
.fwd-proof__num b { font-weight: 300; color: var(--fwd-accent); }
.fwd-section .fwd-proof p.fwd-proof__note, .fwd-proof__note { margin: 0.8rem 0 0; font-size: 1rem; line-height: 1.5; color: var(--fwd-text-2); max-width: 40ch; }
.fwd-section .fwd-proof p.fwd-proof__link { margin-top: auto; padding-top: 0.8rem; } /* 0.29.2: case-study links sit on their own line, level on both sides */
@media (max-width: 640px) {
	.fwd-proof { grid-template-columns: 1fr; }
	.fwd-proof > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--fwd-line); }
}

/* Ticker: a slow strip of names. The list is written twice in the markup
   (second copy aria-hidden); pauses on hover; a plain wrapped list for
   reduced motion. */
.fwd-ticker { overflow: hidden; padding: 20px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.fwd-ticker__track { display: flex; width: max-content; animation: fwd-ticker 44s linear infinite; }
.fwd-ticker__track > span { display: flex; gap: 56px; padding-right: 56px; font-family: var(--fwd-font-mono); font-size: 1.05rem; color: var(--fwd-text-2); white-space: nowrap; }
.fwd-ticker__track i { font-style: normal; }
.fwd-ticker__track i::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--fwd-accent); vertical-align: 0.2em; margin-right: 14px; }
.fwd-ticker:hover .fwd-ticker__track { animation-play-state: paused; }
@keyframes fwd-ticker { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
	.fwd-hero.fwd-motion > *, .fwd-motion .fwd-w > span { animation: none; }
	.fwd-rv { opacity: 1; transform: none; transition: none; }
	.fwd-ticker { -webkit-mask-image: none; mask-image: none; padding-left: 20px; padding-right: 20px; }
	.fwd-ticker__track { animation: none; width: auto; }
	.fwd-ticker__track > span { flex-wrap: wrap; gap: 10px 32px; padding-right: 0; white-space: normal; }
	.fwd-ticker__track > span + span { display: none; }
}

.fwd-ticker { border-top: 1px solid var(--fwd-line); }
