/* Portfolio revamp — layered over Big Picture template */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,650;9..144,700&family=Source+Sans+3:wght@300;400;600;700&display=swap");

:root {
	--ink: #0f1c24;
	--ink-soft: #2a3a44;
	--sea: #1a4a5c;
	--foam: #e8f2f4;
	--sand: #f4efe6;
	--accent: #c45c26;
	--accent-hover: #a34a1c;
	--mint: #3d8b7a;
	--line: rgba(15, 28, 36, 0.12);
	--shadow: 0 18px 50px rgba(15, 28, 36, 0.12);
	--radius: 4px;
	--font-display: "Fraunces", "Georgia", serif;
	--font-body: "Source Sans 3", "Source Sans Pro", sans-serif;
}

body {
	font-family: var(--font-body);
	color: var(--ink-soft);
	background: var(--sand);
}

h1, h2, h3, h4, h5, h6, .brand-mark {
	font-family: var(--font-display);
	font-weight: 650;
	letter-spacing: -0.02em;
}

/* Buttons — warmer accent over template mint */
.button,
input[type="submit"],
input[type="reset"],
input[type="button"] {
	background-color: var(--mint) !important;
	border-radius: var(--radius);
	font-family: var(--font-body);
	font-weight: 600;
	letter-spacing: 0.02em;
}

	.button:hover,
	input[type="submit"]:hover,
	input[type="reset"]:hover,
	input[type="button"]:hover {
		background-color: #347868 !important;
	}

	.button.style2 {
		background-color: transparent !important;
		box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.85);
		color: #fff !important;
	}

		.button.style2:hover {
			background-color: rgba(255, 255, 255, 0.12) !important;
		}

	.button.accent {
		background-color: var(--accent) !important;
		color: #fff !important;
	}

		.button.accent:hover {
			background-color: var(--accent-hover) !important;
		}

/* Header */
#header {
	background: rgba(244, 239, 230, 0.92);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
	overflow: visible;
}

	/* Keep logo image visible over updated header colors */
	#header #logo {
		display: block;
		position: relative;
		z-index: 1;
		width: 62px;
		height: 62px;
		margin-left: 20px;
		margin-top: 0;
		border-radius: 30%;
		background: url("../../images/Iansmall.PNG") no-repeat center center;
		background-size: contain;
		text-indent: -9999px;
		overflow: hidden;
		flex-shrink: 0;
	}

	@media (max-width: 1680px) {
		#header #logo {
			width: 54px;
			height: 54px;
		}
	}

	@media (max-width: 1280px) {
		#header #logo {
			width: 46px;
			height: 46px;
		}
	}

	@media (max-width: 740px) {
		#header #logo {
			width: 38px;
			height: 38px;
			margin-left: calc(50% - 19px);
		}
	}

	#header nav ul li a {
		color: var(--ink-soft);
		font-weight: 600;
		letter-spacing: 0.04em;
		font-family: var(--font-body);
	}

	#header nav ul li a:hover {
		color: var(--accent);
	}

/* Intro hero refinement */
#intro {
	background:
		linear-gradient(160deg, rgba(15, 28, 36, 0.55) 0%, rgba(26, 74, 92, 0.35) 45%, rgba(15, 28, 36, 0.65) 100%),
		url("images/overlay.png"),
		url("../../images/deepblue.jpg");
	background-size: auto, 256px 256px, cover;
	background-attachment: scroll, fixed, fixed;
	background-position: center, top left, bottom center;
	background-repeat: no-repeat, repeat, no-repeat;
}

	#intro .content {
		max-width: 40rem;
	}

	#intro .content header h2 {
		font-size: clamp(2.6rem, 6vw, 4.2rem);
		line-height: 1.05;
		font-weight: 700;
		margin-bottom: 0.35em;
	}

	#intro .eyebrow {
		font-family: var(--font-body);
		font-size: 0.85rem;
		font-weight: 600;
		letter-spacing: 0.16em;
		text-transform: uppercase;
		color: rgba(255, 255, 255, 0.78);
		margin: 0 0 0.85em 0;
	}

	#intro .lede {
		font-size: 1.15rem;
		line-height: 1.55;
		font-weight: 300;
		max-width: 32rem;
		margin: 0 auto 1.5em;
	}

	#intro .hero-actions {
		display: flex;
		flex-wrap: wrap;
		gap: 0.75em 1em;
		justify-content: center;
		margin-top: 1.5em;
	}

	#intro .hero-actions .button {
		min-width: 10.5rem;
	}

/* Builds section */
#work.main.style3.primary {
	background:
		radial-gradient(ellipse 80% 50% at 10% 0%, rgba(61, 139, 122, 0.12), transparent 55%),
		radial-gradient(ellipse 70% 45% at 90% 100%, rgba(196, 92, 38, 0.08), transparent 50%),
		linear-gradient(180deg, #f7f3eb 0%, #ebe4d8 100%);
	color: var(--ink-soft);
}

	#work .content {
		max-width: 58rem;
	}

	#work > .content > header {
		margin-bottom: 2.5em;
	}

	#work > .content > header h2 {
		color: var(--ink);
		font-size: clamp(2rem, 4vw, 2.75rem);
	}

	#work > .content > header p {
		font-size: 1.1rem;
		line-height: 1.65;
		max-width: 40rem;
		margin-left: auto;
		margin-right: auto;
	}

	#work a {
		color: var(--sea);
		border-bottom-color: rgba(26, 74, 92, 0.35);
	}

		#work a:hover {
			color: var(--accent);
			border-bottom-color: var(--accent);
		}

/* Hub callout */
.hub-panel {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 2rem;
	align-items: stretch;
	margin: 0 0 3.5rem;
	text-align: left;
}

@media screen and (max-width: 980px) {
	.hub-panel {
		grid-template-columns: 1fr;
	}
}

.hub-copy {
	padding: 0.25rem 0;
}

	.hub-copy .kicker {
		font-size: 0.8rem;
		font-weight: 700;
		letter-spacing: 0.14em;
		text-transform: uppercase;
		color: var(--mint);
		margin: 0 0 0.65em;
	}

	.hub-copy h3 {
		font-size: clamp(1.55rem, 3vw, 2rem);
		color: var(--ink);
		line-height: 1.15;
		margin: 0 0 0.65em;
	}

	.hub-copy p {
		margin: 0 0 1.25em;
		line-height: 1.65;
		font-size: 1.05rem;
	}

	.hub-copy .hub-actions {
		display: flex;
		flex-wrap: wrap;
		gap: 0.75em;
	}

.hub-card {
	position: relative;
	padding: 1.75rem 1.65rem 1.5rem;
	background:
		linear-gradient(145deg, rgba(15, 28, 36, 0.96), rgba(26, 74, 92, 0.92));
	color: #f0f5f6;
	border-radius: 6px;
	box-shadow: var(--shadow);
	overflow: hidden;
	transform: translateY(0);
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}

	.hub-card::before {
		content: "";
		position: absolute;
		inset: 0;
		background:
			radial-gradient(circle at 100% 0%, rgba(61, 139, 122, 0.35), transparent 45%),
			radial-gradient(circle at 0% 100%, rgba(196, 92, 38, 0.22), transparent 40%);
		pointer-events: none;
	}

	.hub-card:hover {
		transform: translateY(-4px);
		box-shadow: 0 22px 55px rgba(15, 28, 36, 0.22);
	}

	.hub-card > * {
		position: relative;
		z-index: 1;
	}

	.hub-card .hub-domain {
		font-family: var(--font-body);
		font-size: 0.8rem;
		font-weight: 600;
		letter-spacing: 0.12em;
		text-transform: uppercase;
		opacity: 0.7;
		margin: 0 0 0.75em;
	}

	.hub-card h4 {
		font-size: 1.55rem;
		margin: 0 0 0.5em;
		color: #fff;
	}

	.hub-card p {
		margin: 0 0 1.25em;
		line-height: 1.55;
		opacity: 0.9;
		font-size: 0.98rem;
	}

	.hub-card .hub-link {
		display: inline-flex;
		align-items: center;
		gap: 0.4em;
		font-weight: 700;
		color: #fff !important;
		border-bottom: 2px solid rgba(255, 255, 255, 0.45) !important;
		text-decoration: none;
		transition: border-color 0.2s ease, gap 0.2s ease;
	}

		.hub-card .hub-link:hover {
			border-bottom-color: #fff !important;
			gap: 0.65em;
		}

/* Featured ship */
.feature-ship {
	text-align: left;
	padding: 0 0 3rem;
	margin-bottom: 1rem;
}

	.feature-ship .feature-label {
		font-size: 0.78rem;
		font-weight: 700;
		letter-spacing: 0.16em;
		text-transform: uppercase;
		color: var(--accent);
		margin: 0 0 0.85em;
	}

	.feature-ship h3 {
		font-size: clamp(1.6rem, 3.2vw, 2.15rem);
		color: var(--ink);
		margin: 0 0 0.55em;
		line-height: 1.15;
	}

	.feature-ship .feature-sub {
		font-size: 1.08rem;
		line-height: 1.6;
		max-width: 42rem;
		margin: 0 0 1.5em;
	}

.feature-points {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.65rem 1.5rem;
	margin: 0 0 1.75em;
	padding: 0;
}

@media screen and (max-width: 736px) {
	.feature-points {
		grid-template-columns: 1fr;
	}
}

	.feature-points li {
		position: relative;
		padding-left: 1.15em;
		line-height: 1.45;
		font-size: 0.98rem;
		color: var(--ink-soft);
	}

		.feature-points li::before {
			content: "";
			position: absolute;
			left: 0;
			top: 0.55em;
			width: 0.45em;
			height: 0.45em;
			background: var(--mint);
			border-radius: 1px;
		}

.feature-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75em 1em;
	align-items: center;
}

	.feature-actions .text-link {
		font-weight: 600;
		color: var(--sea);
		border-bottom: 1px solid rgba(26, 74, 92, 0.35);
	}

/* Earlier work gallery */
.earlier-work {
	border-top: 1px solid var(--line);
	padding-top: 2.5rem;
	margin-top: 0.5rem;
}

	.earlier-work header {
		margin-bottom: 1.75em !important;
	}

	.earlier-work h3 {
		font-size: 1.35rem;
		color: var(--ink);
		margin: 0 0 0.5em;
	}

	.earlier-work p {
		font-size: 0.98rem;
		opacity: 0.9;
		max-width: 36rem;
		margin-left: auto;
		margin-right: auto;
	}

	#work .gallery {
		opacity: 0.92;
	}

/* Contact polish */
#contact.main.style3.secondary {
	background: linear-gradient(180deg, #1a2e36 0%, #0f1c24 100%);
	color: #d9e4e7;
}

	#contact header h2 {
		color: #fff;
		font-family: var(--font-display);
	}

	#contact header p {
		color: rgba(240, 245, 246, 0.78);
	}

	#contact .box {
		background: rgba(255, 255, 255, 0.97);
		border-radius: 6px;
		box-shadow: var(--shadow);
	}

/* Footer */
#footer {
	background: var(--ink);
}

/* Goals section — soft tint so photo doesn't dominate copy */
#goals .content.box {
	background: rgba(255, 255, 255, 0.94);
	border-radius: 4px;
}

/* Skill list readability */
#two .content.box ul li,
#one .content.box p {
	line-height: 1.55;
}

/* Motion */
@keyframes fade-up {
	from {
		opacity: 0;
		transform: translateY(18px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

#intro .content > * {
	animation: fade-up 0.85s ease both;
}

#intro .content .eyebrow { animation-delay: 0.05s; }
#intro .content header { animation-delay: 0.15s; }
#intro .content .lede { animation-delay: 0.28s; }
#intro .content nav { animation-delay: 0.4s; }
#intro .content .hero-actions { animation-delay: 0.5s; }

body.is-preload #intro .content > * {
	animation: none;
}

.hub-card,
.feature-ship,
.hub-copy {
	transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Bubbles — subtler over darker hero */
.bubbles span {
	background: rgba(255, 255, 255, 0.08);
	border-radius: 50% 45% 55% 48%;
}

@media (prefers-reduced-motion: reduce) {
	#intro .content > *,
	.hub-card,
	.feature-ship {
		animation: none !important;
		transition: none !important;
	}
}
