/* ==============================
   HOME ("Spotlight" design)
   Wide photo on landscape/desktop with text on the left; on portrait screens a
   square face crop on top (home-portrait.jpg) fading into navy behind the text.
   Featured tiles are filled from portfolio.json by renderHomeFeatured() (js/main.js).
   ============================== */
.home-v {
	--hv-navy: #020e24;
	--hv-ink: #0d1418;
	--hv-accent: #60d7a9;
	--hv-text: #e8eef2;
	--hv-muted: #c3cfd6;
	color: var(--hv-text);
	height: 100%;
	overflow: hidden !important;
	background: var(--hv-navy) url(../images/site/home.jpg) no-repeat 78% center / cover;
}
.home-v:before { /* the site's signature grey-teal overlay, on top of the photo */
	content: ""; position: absolute; inset: 0; z-index: 2; background: rgba(73, 92, 95, 0.75);
}
.home-v:after { /* keeps the left side readable */
	content: ""; position: absolute; inset: 0; z-index: 1;
	background: linear-gradient(90deg, var(--hv-navy) 0%, rgba(2,14,36,.92) 38%, rgba(2,14,36,.3) 66%, rgba(2,14,36,0) 100%);
}
.home-v .hv {
	position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; padding: 40px 6vw; box-sizing: border-box;
}
.home-v .hv-text { width: 100%; max-width: 600px; }
.home-v .hv-eyebrow,
.home-v .hv-label {
	font: 700 12px/1 "Montserrat", sans-serif; letter-spacing: 3px; text-transform: uppercase; color: var(--hv-accent); margin: 0 0 16px;
}
.home-v .hv-name {
	font: 700 clamp(40px, 5vw, 80px)/1 "Montserrat", sans-serif; color: #fff; margin: 0; letter-spacing: -2px; text-transform: uppercase;
	white-space: nowrap; /* always one line */
}
.home-v .hv-role { font-size: 20px; margin: 18px 0 0; color: #fff; }
.home-v #typist-element { color: var(--hv-accent); }
.home-v .hv-pitch { color: var(--hv-muted); font-size: 17px; line-height: 1.6; max-width: 34em; margin: 14px 0 0; }

/* buttons */
.home-v .hv-cta { margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }
.home-v .hv-btn {
	display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border: 2px solid rgba(255,255,255,.85); border-radius: 4px;
	font: 700 12px/1 "Montserrat", sans-serif; letter-spacing: 1px; text-transform: uppercase; color: #fff; text-decoration: none; transition: .2s;
}
.home-v .hv-btn i { font-size: 18px; }
.home-v .hv-btn:hover { background: #fff; color: var(--hv-ink); }
.home-v .hv-btn-primary { background: var(--hv-accent); border-color: var(--hv-accent); color: var(--hv-ink); }
.home-v .hv-btn-primary:hover { background: #fff; border-color: #fff; }

/* featured tiles */
.home-v .hv-featured { margin-top: 28px; }
.home-v .hv-label { margin-bottom: 12px; }
.home-v .hv-tiles { display: grid; grid-template-columns: repeat(3, 132px); gap: 10px; min-height: 96px; } /* compact: must not reach the face */
.home-v .hv-tile {
	display: block; text-decoration: none; color: #fff; border-radius: 6px; overflow: hidden;
	background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); transition: transform .2s, border-color .2s, background .2s;
}
.home-v .hv-tile:hover { transform: translateY(-3px); border-color: var(--hv-accent); background: rgba(96,215,169,.1); }
.home-v .hv-tile-img { display: block; height: 56px; background: #10202c center / cover no-repeat; }
.home-v .hv-tile-title {
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
	height: 2.6em; box-sizing: content-box; /* exactly two lines */
	margin: 7px 9px 8px; padding: 0; font: 700 10.5px/1.3 "Montserrat", sans-serif; letter-spacing: .3px; text-transform: uppercase;
}

/* stats */
.home-v .hv-stats {
	list-style: none; padding: 18px 0 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 12px 36px; border-top: 1px solid rgba(255,255,255,.14);
}
.home-v .hv-stats li { margin: 0; padding: 0; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--hv-muted); }
.home-v .hv-stats li:before { display: none; }
.home-v .hv-stats b { display: block; font: 700 26px/1.1 "Montserrat", sans-serif; color: #fff; letter-spacing: -1px; text-transform: none; }

.home-v .scroll-down-indicator { z-index: 4; }

/* squarer landscape screens (e.g. 1024x768, 1280x1024): the photo is scaled up a lot, so place the face just right of the text column */
@media (min-aspect-ratio: 1/1) and (max-aspect-ratio: 3/2) {
	.home-v { background-position: 64% center; }
}
/* shorter desktop/laptop screens: keep everything above the fold */
@media (min-aspect-ratio: 1/1) and (max-height: 860px) {
	.home-v .hv-name { font-size: clamp(40px, 4.6vw, 68px); }
	.home-v .hv-pitch { display: none; }
	.home-v .scroll-down-indicator { display: none; }
}
@media (min-aspect-ratio: 1/1) and (max-height: 680px) {
	.home-v .hv-stats { display: none; }
	.home-v .hv-eyebrow { display: none; }
}
@media (min-aspect-ratio: 1/1) and (max-height: 520px) { /* phone held sideways */
	.home-v .hv { padding-top: 16px; padding-bottom: 16px; }
	.home-v .hv-name { font-size: 40px; }
	.home-v .hv-featured { display: none; }
}

/* portrait: phones and upright tablets */
@media (max-aspect-ratio: 1/1) {
	.home-v { background-image: url(../images/site/home-portrait.jpg); background-size: 100% auto; background-position: center top; }
	.home-v:after { background: linear-gradient(180deg, rgba(2,14,36,0) 0, rgba(2,14,36,0) 28%, rgba(2,14,36,.85) 50%, var(--hv-navy) 64%); }
	.home-v .hv { align-items: flex-end; padding-bottom: 48px; }
	.home-v .hv-text { max-width: 720px; }
	.home-v .scroll-down-indicator { display: none; }
}
@media (max-width: 767px) {
	.home-v .hv { padding: 60px 20px 22px; }
	.home-v .hv-eyebrow { margin-bottom: 8px; font-size: 11px; }
	.home-v .hv-name { font-size: min(44px, 10vw); letter-spacing: -1px; }
	.home-v .hv-role { margin-top: 10px; font-size: 17px; }
	.home-v .hv-pitch { display: none; }
	.home-v .hv-cta { margin-top: 16px; flex-wrap: nowrap; gap: 10px; }
	.home-v .hv-cta .hv-btn { flex: 1; justify-content: center; padding: 12px 10px; font-size: 11px; }
	.home-v .hv-featured { margin-top: 18px; }
	.home-v .hv-label { margin-bottom: 8px; font-size: 11px; }
	.home-v .hv-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; min-height: 0; } /* below the photo: fill the width */
	.home-v .hv-tile-img { height: 52px; }
	.home-v .hv-tile-title { margin: 6px 7px 7px; font-size: 9.5px; }
	.home-v .hv-stats { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 6px; margin-top: 16px; padding-top: 12px; }
	.home-v .hv-stats li { font-size: 9px; letter-spacing: .5px; }
	.home-v .hv-stats b { font-size: 19px; }
}
@media (max-width: 767px) and (max-height: 700px) { /* short phones */
	.home-v .hv-stats { display: none; }
	.home-v .hv-eyebrow { display: none; }
}
