/* =====================================================================
   PLASTIC HUMAN — HOMEPAGE LAYOUT
   Loaded only on the front page (see functions.php). Everything is scoped
   under .ph-home (the front-page.php wrapper) so it cannot leak into blog
   or other templates. Brand tokens, base type, header and footer live in
   the global stylesheet (style.css).
   ===================================================================== */

/* Targeted reset for homepage text elements (avoids a blanket * reset that
   would fight the global .wrap / header / footer utilities). */
.ph-home h1, .ph-home h2, .ph-home h3, .ph-home h4,
.ph-home p, .ph-home ul, .ph-home ol, .ph-home li,
.ph-home figure, .ph-home blockquote, .ph-home form {
	margin: 0;
	padding: 0;
}
.ph-home ul { list-style: none; }
.ph-home, .ph-home *, .ph-home *::before, .ph-home *::after { box-sizing: border-box; }

.ph-home section { padding: 96px 0; }

/* Scroll reveal (reduced motion resets it below). */
.ph-home .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.ph-home .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.ph-home .reveal { opacity: 1; transform: none; transition: none; }
}

.ph-home .btn {
	font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
	text-decoration: none; padding: 16px 28px; display: inline-block;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.ph-home .btn-primary { background: var(--plum); color: var(--paper); border: 1px solid var(--plum); }
.ph-home .btn-primary:hover { background: var(--plum-deep); border-color: var(--plum-deep); }
.ph-home .btn-ghost { border: 1px solid var(--ink); color: var(--ink); }
.ph-home .btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* ---------- HERO ---------- */
.ph-home .hero { padding: 0; border-bottom: 1px solid var(--hairline); }
.ph-home .hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: stretch; min-height: 620px; }
.ph-home .hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 80px 0; }
.ph-home .hero-copy .inner { max-width: 520px; margin-left: auto; padding: 0 48px 0 24px; }
.ph-home h1 {
	font-family: var(--display); font-weight: 500;
	font-size: clamp(42px, 5.2vw, 68px); line-height: 1.08; letter-spacing: -.01em;
	margin: 18px 0 26px;
}
.ph-home h1 em { font-style: italic; color: var(--plum); }
.ph-home .hero-copy p { font-size: 20px; max-width: 46ch; color: #3A372F; }
.ph-home .btn-row { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; }

/* Real portrait image (hero-nico-v2-web.jpg, set inline via
   get_stylesheet_directory_uri). Desktop: full-bleed with the left fade and a
   paper identity chip. Treatment per hero-candidate-A-final.html. */
.ph-home .hero-portrait {
	position: relative;
	background-color: #D9D3C6;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: 62% 52%;
	max-height: min(78vh, 720px);
	min-height: 420px;
}
.ph-home .hero-portrait::before {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(90deg, var(--paper) 0%, rgba(245,244,240,0) 32%);
}
.ph-home .portrait-caption {
	position: absolute; bottom: 22px; left: 0;
	font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
	color: #57524A; background: rgba(245,244,240,.88); padding: 7px 14px 7px 24px;
}

/* Desktop range art direction: the single focal point drifts at the range ends
   (clips the top hairline when maximized; the face sinks below the headline on
   narrow desktops). Ride the face up/down per band so it stays on the upper-
   third / headline eye-line. Base (1200-1599) = 62% 52%. */
@media (min-width: 1600px) {
	.ph-home .hero-portrait { background-position: 62% 40%; }
}
@media (min-width: 901px) and (max-width: 1199px) {
	.ph-home .hero-portrait { background-position: 62% 66%; }
}

@media (max-width: 900px) {
	.ph-home .hero-grid { grid-template-columns: 1fr; min-height: 0; }
	.ph-home .hero-copy { padding: 64px 0 48px; order: 1; }
	.ph-home .hero-copy .inner { margin: 0; padding: 0 24px; max-width: 100%; }
	.ph-home .hero .wrap { padding: 0 24px; }
	/* Framed portrait, left-railed to the 24px gutter, no fade. */
	.ph-home .hero-portrait {
		order: 2; min-height: 0;
		aspect-ratio: 4 / 5; max-width: 400px;
		width: calc(100% - 48px); margin: 0 24px 64px;
		border: 1px solid var(--hairline);
		box-shadow: 0 2px 18px rgba(26,26,26,.07);
		background-position: 62% 14%;
	}
	.ph-home .hero-portrait::before { display: none; }
	/* Figure caption below the frame, on the text rail. */
	.ph-home .portrait-caption { bottom: -30px; left: 0; background: none; padding: 0; }
}

/* ---------- FRAMEWORK ---------- */
.ph-home .framework { background: var(--paper); }
.ph-home .section-head { max-width: 640px; margin: 0 auto 64px; text-align: center; }
.ph-home h2 { font-family: var(--display); font-weight: 500; font-size: clamp(32px, 4vw, 46px); line-height: 1.15; margin: 16px 0 14px; }
.ph-home .section-head p { color: #4A463D; font-size: 20px; }
.ph-home .foundation {
	background: var(--vellum); border-top: 1px solid var(--ink);
	padding: 56px; display: grid; grid-template-columns: 220px 1fr; gap: 48px;
}
/* Self is the foundation: ~1.55x the 27px domain headings, tight to its eyebrow. */
.ph-home .foundation .label h3 { font-family: var(--display); font-size: 42px; line-height: 1.02; font-weight: 500; margin-top: 4px; }
.ph-home .foundation .label .eyebrow { color: var(--plum); }
.ph-home .foundation .body p { font-size: 19px; max-width: 62ch; }
.ph-home .foundation .body p + p { margin-top: 1em; }
.ph-home .foundation .kicker { font-family: var(--body); font-style: italic; font-size: 21px; margin-top: 1.2em; color: var(--ink); }
.ph-home .expressed { display: flex; align-items: center; gap: 20px; margin: 56px 0; }
.ph-home .expressed::before, .ph-home .expressed::after { content: ""; flex: 1; height: 1px; background: var(--hairline); }
.ph-home .expressed span { font-family: var(--mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--stone); text-align: center; }
.ph-home .domains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.ph-home .domain { border-top: 1px solid var(--hairline); padding-top: 26px; position: relative; }
.ph-home .domain::before { content: ""; position: absolute; top: -1px; left: 0; width: 48px; height: 3px; background: var(--plum); }
.ph-home .domain h3 { font-family: var(--display); font-size: 27px; font-weight: 500; margin: 8px 0 14px; }
.ph-home .domain p { font-size: 17.5px; color: #3A372F; text-align: left; }
.ph-home .fw-link { display: block; text-align: center; margin-top: 64px; }
.ph-home .fw-link a { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--plum); text-decoration: none; border-bottom: 1px solid var(--plum); padding-bottom: 4px; }
@media (max-width: 900px) {
	.ph-home .foundation { grid-template-columns: 1fr; padding: 36px 28px; gap: 20px; }
	.ph-home .domains { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- PROCESS ---------- */
.ph-home .process { background: var(--vellum); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.ph-home .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 8px; }
.ph-home .step .num { font-family: var(--mono); font-size: 13px; letter-spacing: .18em; color: var(--plum); display: block; margin-bottom: 14px; }
.ph-home .step h3 { font-family: var(--display); font-size: 25px; font-weight: 500; margin-bottom: 12px; }
.ph-home .step p { font-size: 17.5px; color: #3A372F; }
@media (max-width: 900px) { .ph-home .steps { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- ECOSYSTEM ---------- */
.ph-home .cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.ph-home .card {
	background: #FFFFFF; border: 1px solid var(--hairline);
	padding: 40px 34px 34px; display: flex; flex-direction: column;
	transition: border-color .2s ease, transform .2s ease;
}
.ph-home .card:hover { border-color: var(--plum); transform: translateY(-3px); }
.ph-home .card .eyebrow { margin-bottom: 14px; }
.ph-home .card h3 { font-family: var(--display); font-size: 27px; font-weight: 500; margin-bottom: 12px; }
.ph-home .card p { font-size: 17.5px; color: #3A372F; flex: 1; }
.ph-home .card a { margin-top: 26px; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--plum); text-decoration: none; }
.ph-home .card a:hover { text-decoration: underline; }
@media (max-width: 900px) { .ph-home .cards { grid-template-columns: 1fr; } }

/* ---------- ABOUT ---------- */
.ph-home .about { border-top: 1px solid var(--hairline); }
.ph-home .about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 72px; align-items: start; }
.ph-home .about-pull { font-family: var(--display); font-style: italic; font-weight: 400; font-size: clamp(28px, 3.2vw, 38px); line-height: 1.3; }
.ph-home .about-pull .eyebrow { font-style: normal; margin-bottom: 18px; }
.ph-home .about-body p { font-size: 19px; }
.ph-home .about-body p + p { margin-top: 1.1em; }
.ph-home .about-body a { display: inline-block; margin-top: 28px; font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--plum); text-decoration: none; border-bottom: 1px solid var(--plum); padding-bottom: 4px; }
@media (max-width: 900px) { .ph-home .about-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- SUBSCRIBE ---------- */
.ph-home .subscribe { background: var(--plum); color: var(--paper); padding: 110px 0; }
.ph-home .sub-inner { max-width: 680px; margin: 0 auto; text-align: center; }
.ph-home .subscribe .eyebrow { color: #D9CCEE; }
.ph-home .subscribe h2 { color: var(--paper); }
.ph-home .subscribe p { color: #E4DAF2; font-size: 20px; max-width: 52ch; margin: 0 auto; }
.ph-home .subscribe .sub-form { display: flex; gap: 12px; margin: 40px auto 0; max-width: 520px; }
.ph-home .subscribe .sub-form input { flex: 1; background: transparent; border: 1px solid #9B7FC4; color: var(--paper); font-family: var(--body); font-size: 17px; padding: 16px 18px; }
.ph-home .subscribe .sub-form input::placeholder { color: #BBA6DB; }
.ph-home .subscribe .sub-form button { background: var(--paper); color: var(--plum); border: 1px solid var(--paper); font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; padding: 16px 26px; cursor: pointer; transition: background .2s ease; }
.ph-home .subscribe .sub-form button:hover { background: #FFFFFF; }
.ph-home .subscribe .sub-note { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: #B9A3DA; margin-top: 18px; display: block; }
@media (max-width: 640px) { .ph-home .subscribe .sub-form { flex-direction: column; } }
