/* ==========================================================================
   Service pages, the Start a Project form, and the closing call to action.
   These pages hold the blue-hour landscape (static mode) and fade to night,
   so type is cream throughout.
   ========================================================================== */

/* Service page ------------------------------------------------------------ */

.service-page {
	padding-top: calc(var(--header-h) + clamp(48px, 12vh, 140px));
}

.service-hero__eyebrow {
	margin-bottom: 26px;
}

.service-hero__eyebrow a {
	text-decoration: none;
}

.service-hero__eyebrow a:hover {
	text-decoration: underline;
}

.service-hero__title {
	font-size: clamp(56px, 13vw, 168px);
	line-height: 0.96;
}

/* A line with descenders gets a little room, so "prints +" does not drop its "p"
   into the "d" of "designs". Lines without descenders keep the tight setting. */
.service-hero__title .dw-line--tail + .dw-line {
	margin-top: 0.12em;
}

.service-hero__lede {
	margin-top: clamp(20px, 3vh, 34px);
	max-width: 30em;
}

/* Desktop: the service name reads as one line ("prints + designs"), sized so the
   longest name still fits, with more room before the text under it. */
@media (min-width: 1024px) {
	.service-hero__title {
		font-size: min(168px, calc((100vw - 2 * var(--page-gutter)) / 7.2));
		white-space: nowrap;
	}

	.service-hero__title .dw-line {
		display: inline;
	}

	.service-hero__title .dw-line--tail + .dw-line {
		margin-top: 0;
	}

	/* Two even lines under the one-line name, even for the longest description. */
	.service-hero__lede {
		margin-top: clamp(36px, 5.5vh, 60px);
		max-width: 36em;
		text-wrap: balance;
	}
}

.service-hero__actions {
	margin-top: clamp(26px, 4vh, 44px);
}

.service-intro {
	display: grid;
	gap: 48px;
	margin-top: clamp(72px, 14vh, 160px);
}

.service-intro__body.dw-prose {
	max-width: 38em;
	margin: 0;
	padding: 0;
}

.service-intro__caps .dw-eyebrow {
	margin-bottom: 22px;
}

.service-caps {
	display: grid;
	gap: 14px;
	padding: 0;
	margin: 0;
	list-style: none;
}

.service-caps li {
	display: flex;
	align-items: center;
	gap: 20px;
	font-size: 12.5px;
	line-height: 1.5;
	letter-spacing: 0.3em;
	text-transform: uppercase;
}

.service-caps li::before {
	content: "";
	flex: none;
	width: 20px;
	height: 1px;
	background: currentColor;
	opacity: 0.8;
}

.service-work {
	margin-top: clamp(80px, 16vh, 180px);
}

.service-work__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px 40px;
	margin-bottom: clamp(32px, 6vh, 64px);
}

.service-work__title {
	font-size: clamp(42px, 7vw, 104px);
	line-height: 0.98;
}

/* Desktop: "related past projects" reads as one line. */
@media (min-width: 1024px) {
	.service-work__title .dw-line {
		display: inline;
	}
}

.service-work__empty {
	padding: 32px 0;
	border-top: 1px solid var(--fg-faint);
}

@media (min-width: 900px) {
	.service-intro {
		grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr);
		gap: clamp(48px, 7vw, 120px);
		align-items: start;
	}

	.service-intro__caps {
		padding-left: clamp(28px, 3vw, 48px);
		border-left: 1px solid var(--fg-faint);
	}
}

/* Services overview (/services/) */

.service-overview {
	margin-top: clamp(64px, 12vh, 140px);
}

.service-overview__intro {
	margin: 0 0 48px;
	padding: 0;
}

.service-overview__list {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--fg-faint);
}

.service-overview__list li {
	border-bottom: 1px solid var(--fg-faint);
}

.service-overview__link {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 10px 32px;
	padding: clamp(24px, 4vh, 40px) 0;
	text-decoration: none;
}

.service-overview__name {
	font-size: clamp(38px, 6.4vw, 96px);
	line-height: 1.02;
}

.service-overview__desc {
	grid-column: 1;
	max-width: 40em;
	font-size: 16px;
	line-height: 1.6;
	letter-spacing: 0.04em;
	color: var(--fg-soft);
}

.service-overview__link .dw-circle {
	grid-column: 2;
	grid-row: 1 / span 2;
}

.service-overview__link:hover .dw-circle {
	border-color: var(--fg);
	background: rgba(247, 239, 229, 0.08);
}

/* Service sections: who it's for, what's included, how it works, questions -- */

.service-section {
	margin-top: clamp(80px, 14vh, 160px);
}

.service-section__title {
	margin-bottom: clamp(28px, 5vh, 56px);
	font-size: clamp(42px, 7vw, 104px);
	line-height: 0.98;
}

.service-section__body {
	display: grid;
	gap: 1.2em;
	max-width: 38em;
	font-size: clamp(17px, 1.1vw + 10px, 20px);
	line-height: 1.75;
	letter-spacing: 0.01em;
	color: rgba(247, 239, 229, 0.9);
}

.service-included__list {
	border-top: 1px solid var(--fg-faint);
}

.service-included__item {
	display: grid;
	gap: 10px;
	padding: 24px 0;
	border-bottom: 1px solid var(--fg-faint);
}

.service-included__name {
	font-family: var(--font-ui);
	font-weight: 500;
	font-size: 13px;
	line-height: 1.5;
	letter-spacing: 0.3em;
	text-transform: uppercase;
}

.service-included__text {
	max-width: 36em;
	font-size: 16px;
	line-height: 1.65;
	letter-spacing: 0.02em;
	color: var(--fg-soft);
}

@media (min-width: 900px) {
	.service-included__list {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: clamp(32px, 5vw, 80px);
	}

	.service-included__item {
		padding: 28px 0 30px;
	}
}

.service-steps {
	display: grid;
	gap: 30px;
}

.service-steps__item {
	display: grid;
	align-content: start;
	gap: 10px;
	padding-top: 22px;
	border-top: 1px solid var(--fg-faint);
}

.service-steps__num {
	font-family: var(--font-display-light);
	font-weight: 200;
	font-size: clamp(44px, 4.6vw, 68px);
	line-height: 1;
	letter-spacing: -0.04em;
	color: var(--color-pink);
	background-image: var(--dusk-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.service-steps__title {
	font-family: var(--font-display-light);
	font-weight: 300;
	font-size: clamp(26px, 2.3vw, 36px);
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.service-steps__text {
	font-size: 16px;
	line-height: 1.65;
	letter-spacing: 0.02em;
	color: var(--fg-soft);
}

@media (min-width: 900px) {
	.service-steps {
		grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
		gap: clamp(24px, 3vw, 48px);
	}
}

.service-faq__list {
	max-width: 64em;
	border-top: 1px solid var(--fg-faint);
}

.service-faq__item {
	border-bottom: 1px solid var(--fg-faint);
}

.service-faq__question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 44px;
	padding: 24px 0;
	font-family: var(--font-display-light);
	font-weight: 300;
	font-size: clamp(20px, 1.8vw, 28px);
	line-height: 1.3;
	letter-spacing: -0.01em;
	list-style: none;
	cursor: pointer;
}

.service-faq__question::-webkit-details-marker {
	display: none;
}

.service-faq__icon {
	width: 28px;
	height: 28px;
	stroke-width: 1.1;
	transition: transform var(--dur-fast) var(--ease-out);
}

.service-faq__item[open] .service-faq__icon {
	transform: rotate(45deg);
}

.service-faq__answer {
	max-width: 44em;
	padding-bottom: 28px;
	font-size: 17px;
	line-height: 1.7;
	letter-spacing: 0.01em;
	color: rgba(247, 239, 229, 0.86);
}

.service-more {
	margin-top: clamp(80px, 14vh, 160px);
}

.service-more__title {
	margin-bottom: 22px;
}

.service-more__list li {
	border-top: 1px solid var(--fg-faint);
}

.service-more__list li:last-child {
	border-bottom: 1px solid var(--fg-faint);
}

.service-more__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: clamp(18px, 3vh, 28px) 0;
	text-decoration: none;
}

.service-more__name {
	font-size: clamp(30px, 6vw, 44px);
	line-height: 1.05;
}

.service-more__link:hover .dw-circle {
	border-color: var(--fg);
	background: rgba(247, 239, 229, 0.08);
}

@media (min-width: 900px) {
	.service-more__list {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		column-gap: clamp(24px, 3vw, 48px);
	}

	.service-more__list li:last-child {
		border-bottom: 0;
	}

	.service-more__name {
		font-size: clamp(28px, 2.6vw, 44px);
	}
}

/* Closing call to action ---------------------------------------------------- */

.closing-cta {
	margin-top: clamp(96px, 18vh, 200px);
}

.closing-cta__title {
	font-size: clamp(52px, 10vw, 150px);
	line-height: 0.98;
}

.closing-cta__copy {
	max-width: 28em;
	margin-top: 22px;
	font-size: clamp(14px, 1.3vw, 19px);
	line-height: 1.7;
	letter-spacing: 0.18em;
}

.closing-cta__actions {
	margin-top: clamp(26px, 4vh, 44px);
}

/* Contact page: one page, two modes (project / general) ----------------------- */

.dw-contact-page .site-main {
	background: linear-gradient(180deg, rgba(8, 10, 21, 0.25) 0, rgba(8, 10, 21, 0.62) 40vh, rgba(8, 10, 21, 0.9) 100vh, rgba(8, 10, 21, 0.94) 100%);
}

.contact-page {
	display: grid;
	gap: clamp(40px, 7vh, 72px);
	padding-top: calc(var(--header-h) + clamp(40px, 10vh, 120px));
}

.contact-intro__eyebrow {
	margin-bottom: 24px;
}

/* Fixed thin line + one heavy gradient word. Phones stack the fixed line in two
   halves ("talk to me" / "about your"); wider screens keep it on one line. */
.contact-title {
	font-size: min(14vw, 72px);
	line-height: 1;
}

.contact-title__lead,
.contact-title__half {
	white-space: nowrap;
}

.contact-title__half {
	display: block;
}

.contact-title__word {
	display: inline-block;
}

@media (min-width: 720px) {
	.contact-title {
		font-size: min(7.4vw, 84px);
	}

	.contact-title__half {
		display: inline;
	}
}

@media (min-width: 1024px) {
	/* The fixed line is about 9.9em wide; the cap keeps it inside the left column
	   once the page stops growing (1560px container). */
	.contact-title {
		font-size: min(4vw, 62px);
	}
}

/* Both modes' copy sits in one grid cell so the switch is a crossfade, not a jump. */
.contact-copy {
	display: grid;
	max-width: 27em;
	margin-top: clamp(18px, 3vh, 30px);
}

.contact-copy > *,
.contact-switch__labels > * {
	grid-area: 1 / 1;
	transition: opacity 0.26s var(--ease-out), visibility 0s linear 0s;
}

.contact-page[data-mode="project"] [data-mode-show="general"],
.contact-page[data-mode="general"] [data-mode-show="project"] {
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s var(--ease-out), visibility 0s linear 0.2s;
}

.contact-switch-row {
	margin-top: 22px;
}

.contact-switch {
	gap: 12px;
	min-height: 44px;
	font-size: 15px;
	letter-spacing: 0.1em;
	text-transform: none;
}

.contact-switch__labels {
	display: inline-grid;
}

.contact-switch:hover .contact-switch__labels,
.contact-switch:focus-visible .contact-switch__labels {
	text-decoration: underline;
	text-underline-offset: 0.3em;
}

.contact-switch:hover .dw-icon {
	transform: translateX(4px);
}

.contact-details {
	display: grid;
	gap: 12px;
	margin: 30px 0 0;
	padding: 0;
	list-style: none;
}

.contact-details li {
	display: flex;
	align-items: center;
	gap: 16px;
	font-size: 15px;
	letter-spacing: 0.14em;
}

.contact-details .dw-icon {
	width: 24px;
	height: 24px;
}

.contact-details a {
	text-decoration: none;
}

.contact-details a:hover {
	text-decoration: underline;
}

@media (min-width: 1024px) {
	.contact-page {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: clamp(48px, 6vw, 112px);
		align-items: start;
	}

	.contact-intro {
		position: sticky;
		top: calc(var(--header-h) + 40px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.contact-copy > *,
	.contact-switch__labels > *,
	.contact-page [data-mode-show] {
		transition: none !important;
	}
}

/* Fields */

.dw-form__grid {
	display: grid;
	gap: 22px 20px;
}

@media (min-width: 720px) {
	.dw-form__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.dw-field--wide {
		grid-column: 1 / -1;
	}
}

.dw-field {
	display: grid;
	gap: 8px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.dw-field > label,
.dw-field > legend {
	padding: 0;
	font-size: 14px;
	letter-spacing: 0.12em;
	color: var(--color-cream);
}

.dw-field__req,
.dw-field__opt {
	color: var(--fg-soft);
	font-size: 12px;
	letter-spacing: 0.08em;
}

.dw-field input[type="text"],
.dw-field input[type="email"],
.dw-field input[type="tel"],
.dw-field textarea,
.dw-field select {
	width: 100%;
	min-height: 52px;
	padding: 14px 16px;
	border: 1px solid rgba(247, 239, 229, 0.26);
	border-radius: var(--radius-sm);
	background: rgba(8, 10, 24, 0.55);
	color: var(--color-cream);
	font-family: var(--font-ui);
	font-size: 16px;
	letter-spacing: 0.02em;
	transition: border-color var(--dur-fast), background-color var(--dur-fast);
}

.dw-field textarea {
	min-height: 160px;
	resize: vertical;
	line-height: 1.6;
}

.dw-field input::placeholder,
.dw-field textarea::placeholder {
	color: rgba(247, 239, 229, 0.38);
}

.dw-field input:hover,
.dw-field textarea:hover,
.dw-field select:hover {
	border-color: rgba(247, 239, 229, 0.5);
}

.dw-field input:focus,
.dw-field textarea:focus,
.dw-field select:focus {
	outline: 2px solid var(--color-peach);
	outline-offset: 2px;
	border-color: transparent;
	background: rgba(8, 10, 24, 0.75);
}

.dw-field [aria-invalid="true"] {
	border-color: #ff9a85;
}

.dw-field__error {
	margin: 0;
	font-size: 13.5px;
	letter-spacing: 0.04em;
	color: #ffb3a1;
}

.dw-select {
	position: relative;
}

.dw-select select {
	appearance: none;
	padding-right: 44px;
	cursor: pointer;
}

.dw-select select option {
	background: #10132a;
	color: var(--color-cream);
}

.dw-select__icon {
	position: absolute;
	right: 14px;
	top: 50%;
	width: 18px;
	height: 18px;
	translate: 0 -50%;
	pointer-events: none;
}

/* Multi-select choices */

.dw-choices__list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.dw-choice {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-height: 46px;
	padding: 0 18px 0 14px;
	border: 1px solid rgba(247, 239, 229, 0.26);
	border-radius: var(--radius-pill);
	background: rgba(8, 10, 24, 0.45);
	font-size: 15px;
	letter-spacing: 0.06em;
	cursor: pointer;
	transition: border-color var(--dur-fast), background-color var(--dur-fast);
}

.dw-choice input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
}

.dw-choice__box {
	position: relative;
	flex: none;
	width: 18px;
	height: 18px;
	border: 1px solid rgba(247, 239, 229, 0.6);
	border-radius: 4px;
}

.dw-choice__box::after {
	content: "";
	position: absolute;
	left: 5px;
	top: 1px;
	width: 5px;
	height: 10px;
	border: solid var(--color-night);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
	opacity: 0;
}

.dw-choice:hover {
	border-color: rgba(247, 239, 229, 0.55);
}

.dw-choice:has(input:checked) {
	border-color: var(--color-cream);
	background: rgba(247, 239, 229, 0.1);
}

.dw-choice input:checked + .dw-choice__box {
	border-color: transparent;
	background: var(--dusk-gradient-solid);
}

.dw-choice input:checked + .dw-choice__box::after {
	opacity: 1;
}

.dw-choice input:focus-visible + .dw-choice__box {
	outline: 2px solid var(--color-peach);
	outline-offset: 3px;
}

/* Honeypot: off-screen for people, present for bots. */
.dw-field--trap {
	position: absolute !important;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.dw-form__submit {
	margin-top: 32px;
}

.dw-form__button {
	min-height: 60px;
	padding-inline: 34px 30px;
	gap: 22px;
	font-size: 16px;
	letter-spacing: 0.08em;
}

/* Error summary and success state */

.form-errors {
	margin-bottom: 28px;
	padding: 18px 22px;
	border-left: 2px solid #ff9a85;
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	background: rgba(255, 140, 120, 0.08);
	color: var(--color-cream);
}

.form-errors:focus {
	outline: none;
}

.form-errors__title {
	margin-bottom: 8px;
	font-size: 15px;
	letter-spacing: 0.06em;
}

.form-errors ul {
	margin: 0;
	padding-left: 1.1em;
	font-size: 14px;
	line-height: 1.7;
}

.form-errors a {
	color: #ffc6b8;
}

.form-success {
	padding-top: 8px;
}

.form-success:focus {
	outline: none;
}

/* Three stars: the large one matches the single star it replaced (same size and line
   weight), the smaller two sit to its left. */
.form-success__mark .dw-icon {
	width: 58px;
	height: 58px;
	stroke-width: 0.72;
	color: var(--color-peach);
}

.form-success__title {
	margin-top: 22px;
	font-size: clamp(44px, 7vw, 96px);
	line-height: 1;
}

.form-success__copy {
	max-width: 26em;
	margin: 20px 0 32px;
	font-size: clamp(16px, 1.3vw, 19px);
	line-height: 1.7;
	letter-spacing: 0.08em;
}
