/* Portfolio updates, November 2026. Loaded after style.css on every page. */
/* Case studies (Rise, Fiber, Oxygen): alternating white and black bands, contained images */
.rise-media { padding-top: 48px; }
.rise-media img { display: block; width: 100%; height: auto; border-radius: 20px; }
.rise-media .swiper-slide img { border-radius: 16px; }
.rise-caption { font-size: 15px; line-height: 1.5; color: rgba(255,255,255,0.55); margin-top: 16px; }
.rise-quote { margin-top: 2rem; padding-left: 1em; border-left: 3px solid #7e47f1; font-style: italic; color: rgba(255,255,255,0.8); }
.rise-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem 2rem; margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid rgba(255,255,255,0.14); }
.rise-metrics .n { font-size: 2.6em; font-weight: 600; line-height: 1; letter-spacing: -0.02em; color: #fff; }
.rise-metrics .l { margin-top: 0.6em; line-height: 1.4; color: rgba(255,255,255,0.6); }
.rise-table { display: grid; grid-template-columns: 1fr 2fr; gap: 1rem; max-width: 700px; margin-top: 2rem; color: rgba(255,255,255,0.7); }
.rise-table strong { color: #fff; }
.rise-steps p { margin-top: 0.4em; }
@media (max-width: 767px) { .rise-metrics { grid-template-columns: repeat(2, 1fr); } }
#main-page-content .rise-band:not(.white-section) p:not(.bigger):not(.rise-caption) { color: rgba(255,255,255,0.72); }
/* white bands */
#main-page-content .white-section .bigger { color: #1a1a1f; }
#main-page-content .white-section p:not(.bigger):not(.rise-caption) { color: #55555f; }
#main-page-content .white-section strong { color: #111; }
.white-section .rise-caption { color: #7a7a84; }
.white-section .rise-quote { color: #33333a; }
.white-section .rise-metrics { border-top-color: rgba(0,0,0,0.1); }
.white-section .rise-metrics .n { color: #111; }
.white-section .rise-metrics .l { color: #66666f; }
.white-section .rise-table { color: #55555f; }
.white-section .rise-table strong { color: #111; }
.white-section .rise-media img { box-shadow: 0 0 0 1px rgba(0,0,0,0.07), 0 24px 60px rgba(0,0,0,0.08); }

/* Home: projects stacked one per row, full width, Rise first.
   The template's grid script places tiles absolutely and its breakpoints add offsets,
   so tiles are forced back into normal flow at every width. */
.landing-grid:before, .landing-grid::before { display: none !important; }
.landing-grid .portfolio { height: auto !important; }
.landing-grid .item,
.landing-grid .item:nth-child(1),
.landing-grid .item:nth-child(2),
.landing-grid .item:nth-last-child(2),
.landing-grid .item:nth-last-child(1) {
	position: relative !important;
	left: auto !important;
	top: auto !important;
	float: none !important;
	width: 100% !important;
	height: 42vw !important;
	max-height: 760px;
	margin: 0 !important;
}
@media only screen and (max-width: 767px) {
	.landing-grid .item,
	.landing-grid .item:nth-child(1),
	.landing-grid .item:nth-child(2),
	.landing-grid .item:nth-last-child(2),
	.landing-grid .item:nth-last-child(1) { height: 64vw !important; margin: 0 !important; }
}
.landing-grid .see-all-works { position: relative; clear: both; display: flex; justify-content: flex-end; padding-top: 12px; }
.landing-grid .see-all-works .button-wrap { position: relative !important; left: auto !important; right: auto !important; top: auto !important; bottom: auto !important; float: none; }

/* Home: about me, stats, experience timeline, tools */
.home-now { display: flex; align-items: center; gap: 12px; margin-top: 1.2rem; color: #33333a !important; font-weight: 500; }
.home-dot { width: 10px; height: 10px; border-radius: 50%; background: #2fb36b; box-shadow: 0 0 0 0 rgba(47,179,107,0.5); animation: home-pulse 2s infinite; flex: none; }
@keyframes home-pulse { 0% { box-shadow: 0 0 0 0 rgba(47,179,107,0.5); } 70% { box-shadow: 0 0 0 10px rgba(47,179,107,0); } 100% { box-shadow: 0 0 0 0 rgba(47,179,107,0); } }
.home-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid rgba(0,0,0,0.12); }
.home-stats .n { font-size: 3em; font-weight: 600; line-height: 1; letter-spacing: -0.02em; color: #111; font-variant-numeric: tabular-nums; }
.home-stats .l { margin-top: 0.6em; line-height: 1.4; color: #66666f; }
.home-label { margin-bottom: 1.5rem; }
.home-hint { color: #77777f !important; margin-top: 0.6rem; }
.home-timeline { margin-top: 2rem; border-top: 1px solid rgba(0,0,0,0.12); }
.home-timeline details { border-bottom: 1px solid rgba(0,0,0,0.12); }
.home-timeline summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 1rem; padding: 1.4rem 0; transition: padding 0.25s ease; }
.home-timeline summary::-webkit-details-marker { display: none; }
.home-timeline summary::after { content: "+"; margin-left: 1rem; font-size: 1.6em; line-height: 1; color: #111; transition: transform 0.25s ease; }
.home-timeline details[open] summary::after { transform: rotate(45deg); }
.home-timeline summary:hover { padding-left: 0.5rem; }
.home-timeline summary:focus-visible { outline: 2px solid #7e47f1; outline-offset: 4px; }
.home-timeline .co { font-size: 1.8em; font-weight: 500; color: #111; }
.home-timeline .yr { margin-left: auto; color: #77777f; font-variant-numeric: tabular-nums; white-space: nowrap; }
.home-timeline details p { color: #55555f !important; margin: 0 0 1rem; max-width: 640px; }
.home-link { display: inline-block; margin-bottom: 1.5rem; font-weight: 600; color: #4b3fc4 !important; border-bottom: 2px solid currentColor; }
.home-tools-label { margin-top: 3.5rem; }
.home-tools { display: flex; flex-wrap: wrap; gap: 10px; }
.home-tools span { padding: 10px 16px; border-radius: 999px; background: #f1f1f4; color: #33333a; font-size: 15px; transition: background 0.2s ease, color 0.2s ease; }
.home-tools span:hover { background: #111; color: #fff; }
@media only screen and (max-width: 767px) {
	.home-stats { grid-template-columns: repeat(2, 1fr); }
	.home-timeline .co { font-size: 1.4em; }
}
@media (prefers-reduced-motion: reduce) { .home-dot { animation: none; } .home-timeline summary, .home-timeline summary::after { transition: none; } }

/* Line up "See All Works" with the page content instead of the screen edge */
.landing-grid .see-all-works { padding: 24px 80px 0; }
@media only screen and (max-width: 1466px) { .landing-grid .see-all-works { padding: 24px 60px 0; } }
@media only screen and (max-width: 1024px) { .landing-grid .see-all-works { padding: 20px 40px 0; } }
@media only screen and (max-width: 767px)  { .landing-grid .see-all-works { padding: 16px 30px 0; } }

/* Avoid single words dangling on the last line of headings */
#main-page-content h1, #main-page-content h2, .accordion dt .link { text-wrap: balance; }
