/*
Theme Name: digitalwaveriding
Theme URI: https://digitalwaveriding.com
Author: Thomas Schinabeck
Description: Custom block theme rebuilding the original digitalwaveriding.com design — Crimson Text, fixed split navigation with the wave logo, eyebrow labels, and the original type scale.
Version: 1.3.15
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: digitalwaveriding
*/

/* ============================================================
   Base
   ============================================================ */

html {
	scroll-behavior: smooth;
}

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

a {
	transition: color 0.15s ease;
}

/* ============================================================
   Fixed top navigation (original: white bar, 12px caps links,
   wave logo centered)
   ============================================================ */

.dw-nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	background: #ffffff;
	padding: 24px 40px;
}

/* Keep the fixed bar below the WordPress.com admin bar when logged in */
body.admin-bar .dw-nav,
body.admin-bar .dw-mobile-menu {
	top: var(--wp-admin--admin-bar--height, 32px);
}

.dw-nav-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 1350px;
	margin: 0 auto;
}

.dw-nav-group {
	display: flex;
	align-items: center;
	gap: 0;
	flex: 1 1 0;
}

.dw-nav-group.dw-nav-right {
	justify-content: flex-end;
}

.dw-nav a,
.dw-nav span {
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #000000;
	text-decoration: none;
	padding: 10px 0;
	margin-right: 56px;
}

.dw-nav-right a,
.dw-nav-right span {
	margin-right: 0;
	margin-left: 56px;
}

.dw-nav a:hover {
	color: #5488ea;
}

.dw-nav-logo {
	flex: 0 0 auto;
	display: flex;
	justify-content: center;
}

.dw-nav-logo img {
	width: 40px;
	height: auto;
	display: block;
}

.dw-nav-burger {
	display: none;
	background: none;
	border: 0;
	padding: 8px;
	cursor: pointer;
}

.dw-nav-burger img {
	width: 24px;
	height: 24px;
	display: block;
}

/* Mobile menu overlay */
.dw-mobile-menu {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 2000;
	background: #ffffff;
	padding: 24px;
}

.dw-mobile-menu.is-open {
	display: block;
}

.dw-mobile-menu-close {
	position: absolute;
	top: 24px;
	right: 24px;
	background: none;
	border: 0;
	padding: 8px;
	cursor: pointer;
}

.dw-mobile-menu-close img {
	width: 24px;
	height: 24px;
	display: block;
}

.dw-mobile-menu nav {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	margin-top: 80px;
}

.dw-mobile-menu nav a,
.dw-mobile-menu nav span {
	font-size: 16px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #000000;
	text-decoration: none;
	padding: 12px 0;
}

/* Push page content below the fixed bar */
.dw-content {
	padding-top: 160px;
}

@media (max-width: 860px) {
	.dw-nav {
		padding: 16px 20px;
	}
	.dw-nav-group {
		display: none;
	}
	.dw-nav-inner {
		justify-content: center;
		position: relative;
	}
	.dw-nav-burger {
		display: block;
		position: absolute;
		right: 0;
		top: 50%;
		transform: translateY(-50%);
	}
	.dw-content {
		padding-top: 110px;
	}
}

/* ============================================================
   Type helpers (original Webflow classes, rebuilt)
   ============================================================ */

/* 12px caps eyebrow label — "LATEST WRITINGS", "ABOUT THE PROJECT" … */
.dw-eyebrow {
	font-size: 12px !important;
	font-weight: 400;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #000000;
	margin-bottom: 16px;
}

/* Right-aligned date eyebrow on the Writings list */
.dw-eyebrow-right {
	font-size: 12px !important;
	letter-spacing: 1px;
	text-transform: uppercase;
	text-align: right;
}

/* Homepage intro — 35px/44px */
.dw-intro {
	font-size: 35px;
	line-height: 44px;
	font-weight: 400;
}

@media (max-width: 600px) {
	.dw-intro {
		font-size: 26px;
		line-height: 34px;
	}
}

/* Case-study headline + gray subtitle */
.dw-case-title {
	font-weight: 700;
	font-size: 38px;
	line-height: 1.15;
}

.dw-sub {
	color: #bfbfc0 !important;
	font-size: 38px;
	line-height: 36px;
	font-weight: 400;
	margin: 0 0 10px;
}

@media (max-width: 600px) {
	.dw-case-title,
	.dw-sub {
		font-size: 28px;
	}
}

/* Feature link lists on the homepage — 24px/28px */
ul.dw-feature-list {
	list-style: none;
	padding-left: 0 !important;
	padding-bottom: 36px;
	margin: 0;
}

.dw-feature-list li {
	font-size: 24px;
	line-height: 28px;
	height: 50px;
	margin-bottom: 0;
}

.dw-feature-list a {
	color: #1a1a1a;
	text-decoration: none;
}

.dw-feature-list a:hover {
	color: #5488ea;
}

/* Larger body text used on About / Projects intros — 20px/30px */
.dw-text-large,
.dw-text-large p {
	font-size: 20px;
	line-height: 30px;
}

/* Writings list entry title */
.dw-writing-title {
	font-size: 28px;
	line-height: 32px;
	font-weight: 700;
}

.dw-writing-title a {
	color: #1a1a1a;
	text-decoration: none;
}

.dw-writing-title a:hover {
	color: #5488ea;
}

/* Blue filled button (original .button) */
.dw-btn,
.wp-block-button.dw-btn .wp-block-button__link {
	background-color: #5488ea;
	color: #ffffff;
	border-radius: 2px;
	font-size: 14px;
	letter-spacing: 0.5px;
	padding: 10px 24px;
	text-decoration: none;
	display: inline-block;
	border: 0;
}

/* Outline button (Projects page) */
.dw-btn-outline,
.wp-block-button.dw-btn-outline .wp-block-button__link {
	background: #ffffff;
	color: #1a1a1a;
	border: 1px solid #d0d0d0;
	border-radius: 0;
	font-size: 12px;
	letter-spacing: 1px;
	text-transform: uppercase;
	padding: 9px 15px;
	text-decoration: none;
	display: inline-block;
}

.dw-btn-outline:hover,
.wp-block-button.dw-btn-outline .wp-block-button__link:hover {
	border-color: #1a1a1a;
}

/* Meta tag row on projects — 12px caps */
.dw-meta {
	font-size: 12px !important;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #1a1a1a;
}

/* ============================================================
   Footer — right-aligned 12px social links
   ============================================================ */

.dw-footer {
	padding: 0;
	/* Original .footerbase: animated blue "color wave" rising from the bottom */
	background: linear-gradient(1deg, #5488ea, #ffffff, #ffffff, #ffffff);
	background-size: 1000% 1000%;
	animation: WaveAnimation 4s ease infinite;
}

@keyframes WaveAnimation {
	0% { background-position: 51% 0%; }
	50% { background-position: 50% 75%; }
	100% { background-position: 51% 0%; }
}

/* Original .dwsocialnav.foobuffer: 665px centered, links in the right third, 30px bottom pad */
.dw-footer-inner {
	width: 665px;
	max-width: 90%;
	margin: 100px auto 0;
	padding-bottom: 30px;
}

.dw-footer-links {
	margin-left: 66.6%;
	width: 393px;
	display: flex;
	justify-content: space-between;
	padding-top: 29px;
}

.dw-footer a {
	font-size: 12px;
	color: #000000;
	text-decoration: none;
	width: 60px;
	text-align: center;
	flex: 0 0 60px;
}

.dw-footer a:hover {
	color: #5488ea;
}

/* Original .gooddayfooter */
.dw-goodday {
	font-size: 12px;
	width: 30%;
	margin: 100px auto 50px;
}

/* Original .footercolorbar1 */
.dw-footer-bar {
	width: 100%;
	height: 3px;
	background: #d2dff9;
}

/* The page always fills the viewport, so the blue bar sits exactly on
   the bottom edge — no white below it on short pages / tall windows. */
body {
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	flex-direction: column;
}

.wp-site-blocks {
	flex: 1 0 auto;
	display: flex;
	flex-direction: column;
}

.wp-site-blocks > main {
	flex: 1 0 auto;
}

.wp-site-blocks > footer.wp-block-template-part {
	margin-top: auto;
}

@media (max-width: 600px) {
	.dw-footer-links {
		margin-left: 0;
		padding-top: 20px;
	}
}

/* ============================================================
   Blog posts (single) — matches the original article pages:
   Crimson Text, 1200px hero, 700px title column, 665px body
   ============================================================ */

.single .entry-content.wp-block-post-content {
	max-width: 700px !important;
	margin-left: auto;
	margin-right: auto;
}

.dw-post-main > .dw-post-hero {
	width: 1200px;
	max-width: calc(100vw - 80px);
	margin: 90px auto 55px;
}

.dw-post-hero img {
	display: block;
	width: 100%;
	height: auto;
}

.single .dw-post-title {
	font-family: "Crimson Text", serif;
	font-weight: 700;
	font-size: 40px;
	line-height: 49px;
	max-width: 700px;
	margin: 0 auto 42px;
}

.single .dw-post-lead {
	max-width: 700px;
	margin: 0 auto 97px;
}

.dw-post-lead p {
	margin: 0;
	font-family: "Crimson Text", serif;
	font-size: 20.96px;
	line-height: 29.344px;
	font-style: italic;
}

.entry-content.dw-post-body {
	font-family: "Crimson Text", serif;
	font-size: 20.96px;
	line-height: 29.344px;
}

.entry-content.dw-post-body > * {
	max-width: 665px;
	margin-left: 0 !important;
	margin-right: auto !important;
}

.dw-post-body p {
	margin: 0 0 26px;
}

.dw-post-body h2 {
	font-family: "Crimson Text", serif;
	font-weight: 900;
	font-size: 28px;
	line-height: 35px;
	margin: 56px 0 28px;
}

.dw-post-body h3 {
	font-family: "Crimson Text", serif;
	font-weight: 900;
	font-size: 24px;
	line-height: 30px;
	margin: 48px 0 24px;
}

.entry-content.dw-post-body > blockquote {
	font-size: 19px;
	line-height: 28px;
	font-style: italic;
	border-left: 4px solid #1a1a1a;
	margin: 0 0 28px -28px !important;
	padding-left: 24px;
	max-width: 693px;
}

.dw-post-body a {
	color: #007acc;
}

.dw-post-body img {
	max-width: 100%;
	height: auto;
}

.dw-post-body sup {
	font-size: 13px;
	line-height: 0;
}

/* Footnotes — original: a "Footnotes" line, then a 16px numbered list */
.dw-post-body ol.dw-footnotes {
	margin: 60px 0 0;
	padding-left: 0;
	font-size: 16px;
	line-height: 22.4px;
}

.dw-post-body ol.dw-footnotes::before {
	content: "Footnotes";
	display: block;
	font-size: 20.96px;
	line-height: 29.344px;
	margin-bottom: 16px;
}

.dw-post-body ol.dw-footnotes li {
	margin: 0 0 14px;
	font-size: 16px;
	line-height: 22.4px;
}

/* Author box — original: hairline, blank 42px avatar slot, indented bio */
.dw-post-main > .dw-author-box {
	max-width: 665px;
	margin: 37px 0 0 calc(50% - 350px) !important;
	border-top: 1px solid #d1d1d1;
	padding-top: 37px;
}

.dw-author-title {
	font-family: "Crimson Text", serif;
	font-size: 16px;
	line-height: 28px;
	font-weight: 700;
	margin: 0;
}

.dw-author-bio {
	font-size: 16px;
	line-height: 25.85px;
	color: #686868;
	margin: 4px 0 0 79px;
	max-width: 586px;
}

/* The newsletter block sits under the author box like the original */
.single .dw-footer-nl {
	margin-top: 220px;
}

/* ============================================================
   Misc
   ============================================================ */

.dw-separator {
	border: 0;
	border-top: 1px solid #eeeeee;
	margin: 48px 0;
}

/* About page Lottie mount */
.dw-about-lottie {
	width: 100%;
	max-width: 900px;
	margin: 0 auto;
}

/* Keep images crisp and unstretched */
.wp-block-image img {
	height: auto;
}

/* =====================================================
   Page components (About / case studies / Tools / Projects / Home)
   ===================================================== */

/* The constrained post-content wrapper caps itself at 900px, which squeezes
   every alignfull row. Lift the cap and re-apply 900px per non-full child so
   plain pages keep their column while rows reach the original 1200px. */
.entry-content.wp-block-post-content {
	max-width: none !important;
}

.entry-content > :where(:not(.alignfull):not(.dw-cs-video-970)) {
	max-width: 900px;
	margin-left: auto;
	margin-right: auto;
}

.entry-content > .alignfull {
	max-width: none;
}

.entry-content > .alignfull.dw-page-wide,
.entry-content > .alignfull.dw-cs-cards {
	width: 1200px;
	max-width: 98%;
	margin-left: auto;
	margin-right: auto;
}

.entry-content > .alignfull.dw-cs-special {
	width: 1100px;
	max-width: 95%;
}

.entry-content > .alignfull.dw-cs-browser {
	width: auto;
	max-width: 1000px;
}

/* Original pages start their content 200px from the top (fixed nav overlays):
   160px content padding + 40px on the first row. */
main.dw-content {
	margin-top: 0;
}

.entry-content > .dw-row:first-child {
	margin-top: 40px;
}

/* Label + text rows (About, case studies, Thanks, All Done) */
.dw-page-wide {
	max-width: 1200px;
	margin: 0 auto;
}

.dw-agenda {
	font-size: 12px;
	letter-spacing: 1px;
	text-transform: uppercase;
	text-align: right;
	padding-right: 75px;
	margin: 5px 0 0;
}

@media (max-width: 781px) {
	.dw-agenda {
		text-align: left;
		padding-right: 0;
		margin-bottom: 10px;
	}
}

.dw-body-text,
.dw-body-text p {
	font-size: 20px;
	line-height: 30px;
}

/* Original paragraphs were <br><br>-separated: one blank 30px line between them */
p.dw-body-text + p.dw-body-text {
	margin-top: 30px;
}

.dw-body-text p {
	margin: 0 0 20px;
}

.dw-say-hi {
	position: fixed;
	margin: 5px 0 0 75px !important;
}
@media (max-width: 781px) {
	.dw-say-hi {
		position: static;
		text-align: right;
	}
}
.dw-say-hi,
.dw-say-hi a {
	font-size: 12px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #000000;
	text-decoration: none;
}

.dw-say-hi a:hover {
	color: #5488ea;
}

/* Case-study rows: original .dwaboutrow = 1200px max-98%, margin-top 45px,
   columns without gutters (the original zeroes the w-col paddings) */
.wp-block-columns.dw-row {
	margin: 45px auto 0;
	gap: 0;
}

/* Statement-pair rows: original .dwcsfeatureline = margin 40px auto */
.wp-block-columns.dw-row.dw-featureline {
	margin: 40px auto;
}

/* Contain the h3's 21px top margin inside the row, like the original's floated columns */
.wp-block-columns.dw-row.dw-featureline .wp-block-column {
	display: flow-root;
}

/* Case-study statement pairs */
.dw-cs-h3 {
	font-size: 28px;
	line-height: 30px;
	margin: 21px 0 0;
}

/* Specificity > (0,2,0): the global-styles first/last-child reset must not eat these margins */
.wp-block-column > h3.dw-cs-h3 {
	margin: 21px 0 0;
}

.wp-block-column > .dw-cs-scroll {
	margin-top: 0;
}

.dw-cs-h4 {
	font-size: 28px;
	line-height: 28px;
	font-weight: 400;
	color: #bfbfc0;
	margin: 0;
}

/* Case-study media */
.dw-cs-img img {
	display: block;
	margin: 0 auto;
}

.dw-cs-img {
	max-width: 750px;
	margin: 50px auto;
}

/* Screenshots: original .dwcsimageblock 750px + .dwcsscreenshot margin 100px auto,
   rendered at the full 750px via Webflow's srcset intrinsic inflation */
.dw-cs-shot {
	max-width: 98%;
	margin: 100px auto;
}

.dw-cs-shot img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
}

/* Natural-size screenshot (original Preferences: no srcset, no stretch) */
.dw-cs-shot-nat {
	margin: 100px auto;
}

.dw-cs-shot-nat img {
	display: block;
	margin: 0 auto;
}

/* .dwcslifequalityscoreimage: width 500px, margin 100px auto */
.dw-cs-shot-500 {
	width: 500px;
	max-width: 98%;
	margin: 100px auto;
}

.dw-cs-shot-500 img {
	display: block;
	width: 100%;
	height: auto;
}

/* Header/Mac images: original .dwcsheaderimage/.dwcsmacimage render at 600px */
.dw-cs-mac {
	max-width: 98%;
	margin: 100px auto;
}

.dw-cs-mac img {
	display: block;
	width: auto;
	max-width: min(600px, 100%);
	height: auto;
	margin: 0 auto;
}

/* Videos: per-video widths from the original (970 / 800 / 600 / 900) */
.dw-cs-video {
	margin: 100px auto;
}

.dw-cs-video-970 { width: 970px; max-width: 98%; }
.dw-cs-video-800 { width: 800px; max-width: 98%; }
.dw-cs-video-600 { width: 600px; max-width: 98%; }
.dw-cs-video-900 { width: 900px; max-width: 98%; }

.dw-cs-video video {
	width: 100%;
	display: block;
	box-shadow: 1px 1px 3px 0 #b9b9b9;
	background: #ffffff;
}

/* Original .dwcsvideodesignranking: max-width 98% inside the 900px block */
.dw-cs-video.dw-cs-video-900 video {
	width: 98%;
	margin: 0 auto;
}

/* Concept cards: original .dwcsimgblockcards 1200px, margin 150px auto 100px */
.wp-block-columns.dw-cs-cards {
	width: 1200px;
	max-width: 98%;
	margin: 150px auto 100px;
}

.dw-cs-cards img {
	display: block;
	width: 330px;
	max-width: 100%;
	margin: 0 auto;
}

/* Bear section wrapper: original .dwcsimagespecial 1100px max-95%, margin 150px auto */
.dw-page-wide.dw-cs-special {
	width: 1100px;
	max-width: 95%;
	margin: 150px auto;
}

/* End spacer: original .dwcsendblock */
.dw-cs-end {
	height: 250px;
}

.dw-cs-caption,
.dw-cs-caption p {
	font-size: 17px;
	font-style: italic;
	line-height: 24px;
}

/* Press logos (dotdotdot) */
.dw-press-row img {
	display: block;
	max-width: 80%;
	margin: 0 auto;
}

/* Tools page */
.dw-tools-img {
	max-width: 750px;
	margin: 90px auto 60px;
}

/* Beat the constrained-layout :first-child margin reset (0,2,0) */
.page-id-88 .entry-content > .dw-tools-img {
	margin-top: 90px;
}

.page-id-88 .dw-footer-nl {
	margin-top: 138px;
}

/* First category heading inside each tools column keeps its 50px air */
.wp-block-column > h2.dw-tools-cat:first-child {
	margin-top: 50px;
}

.dw-tools-img img {
	display: block;
	margin: 0 auto;
}

.dw-tools-intro,
.dw-tools-intro p {
	font-size: 20px;
	line-height: 30px;
}

.entry-content > .dw-tools-intro {
	max-width: 1000px;
}

/* Original .dwtoolsrow: 1000px, two 500px columns with a 60px inner gutter */
.page-id-88 .entry-content > .alignfull.dw-page-wide {
	width: 1000px;
	max-width: 98%;
	margin: 25px auto 0;
	gap: 0;
}

.page-id-88 .entry-content > .alignfull.dw-page-wide > .wp-block-column {
	box-sizing: border-box;
}

.page-id-88 .entry-content > .alignfull.dw-page-wide > .wp-block-column:first-child {
	padding-right: 30px;
}

.page-id-88 .entry-content > .alignfull.dw-page-wide > .wp-block-column:last-child {
	padding-left: 30px;
}

h2.dw-tools-cat {
	font-size: 12px;
	line-height: 20px;
	font-weight: 400;
	letter-spacing: 1px;
	text-transform: uppercase;
	border-bottom: 2px solid #000000;
	padding-bottom: 6px;
	margin: 50px 0 20px;
}

h3.dw-tool-name {
	font-size: 18px;
	line-height: 24px;
	margin: 0;
}

h3.dw-tool-name a {
	color: #1a1a1a;
	text-decoration: none;
}

h3.dw-tool-name a:hover {
	color: #5488ea;
	text-decoration: underline;
}

.dw-tool-desc {
	font-size: 18px;
	line-height: 24px;
	margin: 0 0 20px;
}

/* Projects page — original: 60%-wide sections (min 800px), cols 30/60 with a 10% gap, 250px between projects */
.entry-content > .alignfull.dw-proj-head {
	width: 60%;
	min-width: 800px;
	max-width: none;
	margin: 90px auto 150px;
}

.dw-proj-head .dw-body-text {
	margin: 15px 0 25px;
	max-width: 800px;
}

.entry-content > .alignfull.dw-proj-row {
	width: 60%;
	min-width: 800px;
	max-width: none;
	margin: 25px auto 250px;
	padding-top: 25px; /* original: the inner .dwprojectsrow 25px top margin does not collapse */
	gap: 0;
	justify-content: space-between;
}

.dw-proj-row > .wp-block-column {
	flex-grow: 0;
	box-sizing: border-box;
}

/* Image column: 60px inner padding on the side facing the text (original float layout) */
.dw-proj-row > .wp-block-column[style*="flex-basis:60%"]:last-child { padding-left: 60px; }
.dw-proj-row > .wp-block-column[style*="flex-basis:60%"]:first-child { padding-right: 60px; }
.dw-proj-row > .wp-block-column[style*="flex-basis:80%"] { padding-right: 60px; }

.dw-proj-row .dw-eyebrow {
	line-height: 1.4;
	margin: 5px 0 0;
}

.dw-proj-h2 {
	font-size: 32px;
	line-height: 36px;
	margin: 19px 0 15px;
	font-weight: 700;
}

.dw-proj-h2 a {
	color: inherit;
	text-decoration: none;
}

.dw-proj-sub,
.dw-proj-sub p {
	font-size: 20px;
	line-height: 30px;
}

/* original .dwprojectsprojectsublinep min-width 300px overflows the 240px text column */
.dw-proj-sub {
	min-width: 300px;
	margin: 0;
}

.dw-proj-row .dw-meta {
	line-height: 1.4;
	margin: 15px 0 0;
}

.dw-proj-cta {
	margin: 25px 0 0;
}

.dw-proj-cta .dw-btn-outline {
	margin-right: 10px;
}

.dw-proj-media,
.dw-proj-media figure {
	margin: 0;
	max-width: none;
}

.dw-proj-media img,
.dw-proj-media video {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	margin-top: 50px;
}

.dw-proj-media .dw-img-top0 img { margin-top: 0; }
.dw-proj-media .dw-img-neg50 img { margin-top: -50px; }

.dw-brands-label {
	font-size: 12px;
	letter-spacing: 1px;
	text-transform: uppercase;
	text-align: center;
	margin: 100px 0 30px;
}

.dw-brands,
.dw-brands p {
	font-size: 18px;
	line-height: 30px;
	text-align: center;
}

.dw-brands {
	max-width: 800px;
	margin: 0 auto 22px;
}

/* Footer newsletter block (original .newsletterheading / .dwnewsletterteaser) */
.dw-footer-nl {
	margin-top: 95px;
}

.page-id-90 .dw-footer-nl {
	margin-top: 218px;
}

.dw-footer-nl .dw-col-head {
	padding-top: 5em;
	margin: 0 0 12px;
	line-height: 36px;
}

.dw-footer-nl .dw-newsletter-teaser {
	font-size: 16px;
	line-height: 20px;
	margin: 0 0 15px;
}

/* Footer signup — original: 170x32 input, flush blue button */
.dw-footer-nl .dw-signup {
	margin: 0;
}

.dw-footer-nl .dw-signup form > div {
	display: flex;
}

.dw-footer-nl .dw-signup input.email {
	width: 250px;
	height: 32px;
	font-size: 16px;
	padding: 0 6px;
	border: 1px solid #abb0b2;
	border-radius: 2px;
	background: #fff;
	box-sizing: border-box;
	margin: 0;
}

.dw-footer-nl .dw-signup .clear {
	margin: 0;
}

.dw-footer-nl .dw-signup input.button {
	height: 32px;
	font-size: 16px;
	line-height: 32px;
	padding: 0 18px;
	background: #5488ea;
	color: #fff;
	border: 0;
	border-radius: 2px;
	margin: 0;
}

/* dotdotdot case study */
.entry-content > .dw-row.dw-start-250:first-child {
	margin-top: 90px;
}

.dw-video-frame {
	margin: 50px auto 0;
	padding: 20px;
	background: #fff;
}

.wp-block-columns.dw-press-row {
	gap: 0;
	margin: 40px 0 0;
}

.dw-press-logo {
	display: block;
	max-width: 80%;
	margin: 0 auto;
}

/* Home */
.dw-home-teaser {
	max-width: 900px;
	margin: 0 auto;
}

/* Home: hovering the inline turntable animation opens a lightbox view
   (pointer-events:none keeps the hover on the small span, so it closes on mouse-out) */
.dw-home-teaser .dw-intro > span[role="img"] {
	cursor: zoom-in;
}

.dw-home-teaser .dw-intro > span[role="img"]::before,
.dw-home-teaser .dw-intro > span[role="img"]::after {
	content: "";
	position: fixed;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}

.dw-home-teaser .dw-intro > span[role="img"]::before {
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	background: rgba(255, 255, 255, 0.94);
	z-index: 9998;
}

.dw-home-teaser .dw-intro > span[role="img"]::after {
	left: 50%;
	top: 50%;
	width: 23vmin;
	height: 23vmin;
	transform: translate(-50%, -50%);
	background: url('https://digitalwaveriding.com/wp-content/uploads/2026/12/railway-turntable-2.webp') center/contain no-repeat;
	z-index: 9999;
}

.dw-home-teaser .dw-intro > span[role="img"]:hover::before,
.dw-home-teaser .dw-intro > span[role="img"]:hover::after {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.25s ease;
}

.dw-home-teaser .dw-intro {
	margin: 65px 0 131px;
}

/* Original home columns: 280 / 280 / 300 with 20px gutters */
.dw-home-cols .wp-block-columns {
	gap: 20px;
}

.dw-home-cols .wp-block-column:nth-child(-n+2) {
	/* The markup carries inline flex-basis:33.33%, so only !important reaches it */
	flex: 0 0 280px !important;
}

.dw-home-cols .wp-block-column:last-child {
	flex: 0 0 300px !important;
}

/* Gutenberg's layout reset zeroes the first child's top margin inside columns */
.wp-block-column > h2.dw-col-head:first-child {
	margin-top: 35px;
}

.dw-home-cols {
	max-width: 900px;
	margin: 0 auto 50px;
}

h2.dw-col-head {
	font-size: 12px;
	line-height: 18px;
	font-weight: 400;
	letter-spacing: 1px;
	text-transform: uppercase;
	margin: 35px 0 30px;
}

.dw-newsletter-teaser,
.dw-newsletter-teaser p {
	font-size: 16px;
	line-height: 20px;
	margin-bottom: 15px;
}

.dw-newsletter-teaser a {
	color: #5488ea;
	text-decoration: none;
}

.dw-newsletter-teaser a:hover {
	text-decoration: underline;
}

.dw-spam-note {
	font-size: 16px;
	line-height: 20px;
	margin-top: 20px;
}

/* Mailchimp signup form */
.dw-signup form {
	margin: 0;
}

/* Jetpack Newsletter subscribe block, styled like the original Mailchimp form */
.dw-signup .wp-block-jetpack-subscriptions__form-elements {
	display: flex !important;
	align-items: flex-start;
	gap: 0;
}

/* Home: email field fills the column flush to the Subscribe button */
.dw-signup p#subscribe-email {
	flex: 1 1 auto;
	margin: 0 !important;
}

.dw-signup .wp-block-jetpack-subscriptions p {
	margin: 0;
}

.dw-signup input#subscribe-field {
	font-family: 'Crimson Text', Georgia, serif !important;
	font-size: 16px !important;
	border: 1px solid #abb0b2 !important;
	border-radius: 2px !important;
	color: #343434;
	background-color: #ffffff;
	box-sizing: border-box;
	height: 32px !important;
	width: 100% !important;
	padding: 0 0.4em !important;
	margin: 0;
}

.dw-signup #subscribe-submit button {
	font-family: 'Crimson Text', Georgia, serif !important;
	font-size: 16px !important;
	border: none !important;
	border-radius: 2px !important;
	-webkit-appearance: none;
	letter-spacing: 0.04em;
	color: #ffffff !important;
	background-color: #5488ea !important;
	box-sizing: border-box;
	height: 32px;
	line-height: 32px !important;
	padding: 0 18px !important;
	margin: 0 !important;
	font-weight: 400;
	transition: all 0.23s ease-in-out 0s;
}

.dw-signup #subscribe-submit button:hover {
	background-color: #777777 !important;
	cursor: pointer;
}

.dw-signup .jetpack-memberships-spinner {
	display: none;
}

.dw-signup input.email {
	font-family: 'Crimson Text', Georgia, serif;
	font-size: 16px;
	border: 1px solid #abb0b2;
	border-radius: 2px;
	color: #343434;
	background-color: #ffffff;
	box-sizing: border-box;
	height: 32px;
	padding: 0 0.4em;
	display: inline-block;
	margin: 0 0 5px;
	width: 100%;
}

.dw-signup .button {
	font-family: 'Crimson Text', Georgia, serif;
	font-size: 16px;
	border: none;
	border-radius: 2px;
	-webkit-appearance: none;
	letter-spacing: 0.04em;
	color: #ffffff;
	background-color: #5488ea;
	box-sizing: border-box;
	height: 32px;
	line-height: 32px;
	padding: 0 18px;
	display: inline-block;
	margin: 0;
	width: 100%;
	transition: all 0.23s ease-in-out 0s;
}

.dw-signup .button:hover {
	background-color: #777777;
	cursor: pointer;
}

/* About hero: Lottie mountains with portrait photo */
/* The Lottie artwork inks only [11.74%, 88.28%] of its own canvas, so the
   canvas is oversized by 1/0.7654 and shifted so the INK spans N..I; the
   row clips the blank overhang. */
.dw-about-hero-row {
	overflow: hidden;
}

.dw-about-hero {
	position: relative;
	width: calc(65.325% + 497.8px);
	max-width: none;
	margin: 0 0 0 calc(17.331% - 255.44px);
	overflow: hidden;
}

@media (max-width: 781px) {
	.dw-about-hero {
		width: 130.65%;
		margin-left: -15.338%;
	}
}

/* Beat the constrained-layout :first-child margin reset (0,2,0) */
.page-id-85 .entry-content > .dw-about-hero-row {
	margin-top: 90px;
}

/* ============ Case studies: original display geometry ============ */

/* The original shows these Webflow exports at fixed CSS widths (upscaled
   exactly like the original did) */
.dw-cs-shot img {
	width: 750px;
	height: auto;
}

.dw-cs-mac img[src*="cities-mobile"] {
	width: 540px;
	height: auto;
}

.dw-cs-mac img[src*="landingpageonmac"] {
	width: 600px;
	height: auto;
}

/* The original fixes these video heights (slight letterbox squash kept) */
.dw-cs-video-900 video {
	height: 538px;
}

/* The original wraps this video in a 550px block (12px under the video) */
.dw-cs-video-900 {
	padding-bottom: 12px;
}

/* The original's end block follows the last row flush */
.entry-content > .dw-cs-end {
	margin-top: 0;
}

.dw-cs-video-600 video {
	height: 564px;
}

/* Teleport hero figure: the original's exact vertical placement */
.page-id-96 .entry-content > figure.dw-cs-mac:has(img[src*="cities-mobile"]) {
	margin-top: 121px;
	margin-bottom: 120px;
}

/* The original has no site footer on case studies, thanks and all-done */
.page-id-96 .dw-footer,
.page-id-91 .dw-footer,
.page-id-81 .dw-footer,
.page-id-82 .dw-footer {
	display: none;
}

.dw-about-hero .dw-ts-image {
	position: absolute;
	top: 15%;
	right: 41%;
	width: 20%;
	height: auto;
}

/* About page: the original wrapper is 87% wide, rows 98% of that (1092px at 1280) */
.page-id-85 .entry-content > .alignfull.dw-page-wide {
	width: 1200px;
	max-width: 85.3vw;
}

/* About paragraphs: original <p> rhythm is 25px, trailing margin included */
.page-id-85 .entry-content .dw-body-text {
	margin: 0 0 25px;
}

.page-id-85 p.dw-body-text + p.dw-body-text {
	margin-top: 0;
}

.page-id-85 .entry-content .dw-text-solo {
	margin-bottom: 0;
}

/* All Done: original social row inside the text column */
.dw-social-inline {
	margin: 129px 0 0 400px;
	width: 393px;
	display: flex;
	justify-content: space-between;
}

.dw-social-inline a {
	font-size: 12px;
	color: #000000;
	text-decoration: none;
	flex: 0 0 60px;
	text-align: center;
}

.dw-social-inline a:hover {
	color: #5488ea;
}

/* Writings list (original .dwexcerptlistsection: 800px rows, date col left) */
.dw-writings-list {
	margin-top: 110px;
}

/* Beat the constrained-layout :first-child margin reset (0,2,0) */
.blog main .dw-writings-list {
	margin-top: 110px;
}

.wp-block-columns.dw-writing-row {
	width: 800px;
	max-width: 90%;
	margin: 0 auto 82px;
	gap: 0;
}

.dw-writing-datecol,
.wp-block-columns.dw-writing-row > .wp-block-column.dw-writing-datecol {
	flex: 0 0 143px;
	box-sizing: border-box;
	padding-right: 20px;
}

.dw-writing-maincol,
.wp-block-columns.dw-writing-row > .wp-block-column.dw-writing-maincol {
	flex: 0 0 513px;
}

.dw-writing-datecol > div.dw-writing-date {
	margin-top: 2px;
}

.dw-writing-date {
	font-size: 12px;
	line-height: 1.4;
	letter-spacing: 1px;
	text-transform: uppercase;
	text-align: right;
	margin: 2px 0 0;
}

h2.dw-writing-title {
	font-size: 28px;
	line-height: 32px;
	font-weight: 700;
	margin: 0;
}

h2.dw-writing-title a {
	color: #1a1a1a;
	text-decoration: none;
}

h2.dw-writing-title a:hover {
	color: #5488ea;
}

.dw-writing-excerpt,
.dw-writing-excerpt p {
	font-size: 20.96px;
	line-height: 29.344px;
}

.dw-writing-excerpt {
	margin-top: 10px;
}

.dw-writing-excerpt p {
	margin: 0;
}

.blog .dw-footer-nl,
.home.blog .dw-footer-nl {
	margin-top: 274px;
}

/* Big page headline (Thanks, All Done, Projects header, dotdotdot) */
h1.dw-page-h1 {
	font-size: 38px;
	line-height: 44px;
	margin: 0;
}

@media (max-width: 600px) {
	h1.dw-page-h1 {
		font-size: 28px;
		line-height: 34px;
	}
	.dw-home-teaser .dw-intro {
		margin: 60px 0 60px;
	}
}

/* Case study: scrolling screenshots in a browser frame.
   Original: row max-1000px, bar .dwcsbrowserbar 601px centered,
   scroll column 66.6%, image 600px centered with 100px bottom margin. */
.wp-block-columns.dw-cs-browser {
	max-width: 1000px;
	min-height: 400px;
	margin: 100px auto 50px;
}

.dw-browser-top img {
	display: block;
	width: 601px;
	max-width: 100%;
	margin: 0 auto -6px;
}

.dw-cs-scroll {
	overflow-y: scroll;
	max-height: 75vh;
	display: block;
}

.dw-cs-scroll img {
	display: block;
	width: 600px;
	max-width: 100%;
	height: auto;
	margin: 0 auto 100px;
}

/* Case study: bear comic strip (original .dwcsbear* metrics) */
.dw-bear-headline,
.dw-bear-headline p {
	font-size: 24px;
	line-height: 32px;
	font-weight: 400;
	font-style: normal;
	text-align: center;
	margin: 0 0 80px;
}

.dw-bear-strip {
	display: flex;
}

.dw-bear-col {
	width: 50%;
	box-sizing: border-box;
}

.dw-bear-col1 {
	padding: 0 20px 0 40px;
}

.dw-bear-strip img {
	display: inline-block;
	vertical-align: middle;
	height: auto;
}

.dw-bear-left { width: 144px; }
.dw-bear-phone { width: 168px; }
.dw-bear-middle { width: 168px; }
.dw-bear-right { width: 167px; margin-left: 105px; }
.dw-bear-box { width: 135px; margin-top: 80px; margin-right: 25px; margin-left: 10px; }
.dw-bear-crushed { width: 243px; margin-top: -25px; }

@media (max-width: 781px) {
	.dw-bear-strip {
		display: block;
	}
	.dw-bear-col {
		width: 100%;
	}
	.dw-bear-col1 {
		padding: 0;
	}
	.dw-bear-right { margin-left: 45%; }
}

.dw-bear-caption,
.dw-bear-caption p {
	font-size: 17px;
	font-style: italic;
	line-height: 24px;
	margin: 0;
}

/* Fork: screencast video overlaid inside the iMac frame (original: 413x259 at 30/35 within 587x434; the 85px video margin minus the image's own 50px margin) */
.dw-proj-media .dw-fork-device {
	position: relative;
	width: 587px;
	max-width: none;
	margin-top: 50px;
}
/* the original fork section lacks .w-clearfix, so its inner 25px top margin collapses away */
.entry-content > .alignfull.dw-proj-row:has(.dw-fork-device) {
	padding-top: 0;
}
/* original .forkvideotextcolumn: text pushed down 90px */
.dw-proj-row:has(.dw-fork-device) > .wp-block-column[style*="flex-basis:30%"] {
	margin-top: 90px;
	padding-left: 20px;
}
.dw-proj-media .dw-fork-device img {
	display: block;
	width: 100%;
	height: auto;
	margin-top: 0;
}
.dw-proj-media .dw-fork-device video {
	position: absolute;
	left: 5.11%;
	top: 8.06%;
	width: 70.36%;
	height: auto;
	margin-top: 0;
}
