/* ==========================================================================
   Brand Journal — home.css
   Loaded only on the front page. Styles the six homepage sections.
   ========================================================================== */

/* Shared section header utility */
.bj-section-header {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: end;
	gap: var(--bj-s-2);
	margin-bottom: var(--bj-s-4);
}
.bj-section-header__title { margin: 0; }
.bj-section-header__link  { white-space: nowrap; }
@media (max-width: 640px) {
	.bj-section-header { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   1. Hero
   -------------------------------------------------------------------------- */
.bj-hero-home {
	background: linear-gradient(180deg, var(--bj-surface-warm) 0%, var(--bj-surface) 100%);
	padding-top: clamp(var(--bj-s-5), 8vw, var(--bj-s-7));
	padding-bottom: clamp(var(--bj-s-5), 8vw, var(--bj-s-7));
	position: relative;
	overflow: hidden;
}
.bj-hero-home::after {
	content: "";
	position: absolute;
	right: -10vw;
	top: -10vw;
	width: 40vw; height: 40vw;
	max-width: 520px; max-height: 520px;
	min-width: 220px; min-height: 220px;
	background: var(--bj-yellow);
	border-radius: 50%;
	opacity: 0.35;
	z-index: 0;
	pointer-events: none;
}
.bj-hero-home__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	gap: clamp(var(--bj-s-4), 5vw, var(--bj-s-6));
	align-items: center;
}
.bj-hero-home__body { display: grid; gap: var(--bj-s-3); }
.bj-hero-home__eyebrow { margin: 0; }
.bj-hero-home__title { margin: 0; }
.bj-hero-home__lede  { margin: 0; max-width: 34rem; }
.bj-hero-home__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--bj-s-2);
	margin-top: var(--bj-s-1);
}
.bj-hero-home__media { position: relative; }
.bj-hero-home__media::before {
	content: "";
	position: absolute;
	inset: -16px auto auto -16px;
	width: 120px; height: 120px;
	background: var(--bj-yellow);
	border-radius: 30% 70% 65% 35% / 45% 40% 60% 55%;
	z-index: 0;
	opacity: 0.9;
}
.bj-hero-home__image,
.bj-hero-home__placeholder {
	position: relative;
	z-index: 1;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: var(--bj-radius-lg);
	box-shadow: var(--bj-shadow-md);
	background: var(--bj-surface-warm);
}
.bj-hero-home__placeholder::after {
	content: "";
	position: absolute; inset: 30%;
	background: var(--bj-hairline);
	border-radius: 50%;
	opacity: 0.4;
}

@media (max-width: 860px) {
	.bj-hero-home__inner { grid-template-columns: 1fr; }
	.bj-hero-home__media { order: -1; }
	.bj-hero-home__image,
	.bj-hero-home__placeholder { aspect-ratio: 16 / 10; }
}

/* --------------------------------------------------------------------------
   2. Brand story
   -------------------------------------------------------------------------- */
.bj-story {
	padding-top: clamp(var(--bj-s-5), 7vw, var(--bj-s-7));
	padding-bottom: clamp(var(--bj-s-5), 7vw, var(--bj-s-7));
}
.bj-story__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(var(--bj-s-4), 5vw, var(--bj-s-6));
	align-items: center;
}
.bj-story--image_left .bj-story__media { order: 0; }
.bj-story--image_left .bj-story__body  { order: 1; }
.bj-story--image_right .bj-story__media { order: 1; }
.bj-story--image_right .bj-story__body  { order: 0; }

.bj-story__image {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--bj-radius);
	background: var(--bj-surface-warm);
}
.bj-story__body { display: grid; gap: var(--bj-s-2); }
.bj-story__title { margin: 0; }
.bj-story__copy p:last-child { margin-bottom: 0; }

@media (max-width: 780px) {
	.bj-story__inner { grid-template-columns: 1fr; }
	.bj-story--image_left .bj-story__media,
	.bj-story--image_right .bj-story__media { order: 0; }
	.bj-story--image_left .bj-story__body,
	.bj-story--image_right .bj-story__body { order: 1; }
}

/* --------------------------------------------------------------------------
   3. Press logos
   -------------------------------------------------------------------------- */
.bj-press {
	padding-top: var(--bj-s-5);
	padding-bottom: var(--bj-s-5);
	border-top: 1px solid var(--bj-hairline);
	border-bottom: 1px solid var(--bj-hairline);
	background: var(--bj-surface);
}
.bj-press__inner { display: grid; gap: var(--bj-s-3); }
.bj-press__heading {
	font-size: var(--bj-fs-100);
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: var(--bj-ink-soft);
	font-weight: 500;
	margin: 0;
	text-align: center;
}
.bj-press__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	align-items: center;
	gap: var(--bj-s-3);
	justify-items: center;
}
.bj-press__logo {
	max-height: 48px;
	width: auto;
	filter: grayscale(1);
	opacity: 0.7;
	transition: opacity var(--bj-dur-fast) var(--bj-ease), filter var(--bj-dur-fast) var(--bj-ease);
}
.bj-press__item:hover .bj-press__logo,
.bj-press__item a:hover .bj-press__logo { opacity: 1; filter: grayscale(0); }

/* --------------------------------------------------------------------------
   4. Journal preview
   -------------------------------------------------------------------------- */
.bj-journal-preview {
	padding-top: clamp(var(--bj-s-5), 7vw, var(--bj-s-7));
	padding-bottom: clamp(var(--bj-s-5), 7vw, var(--bj-s-7));
	background: var(--bj-surface);
}
/* The inner .bb-blog / .bb-grid styles come from blog.css, already tokenised. */

/* --------------------------------------------------------------------------
   5. Instagram grid
   -------------------------------------------------------------------------- */
.bj-ig {
	padding-top: clamp(var(--bj-s-5), 7vw, var(--bj-s-7));
	padding-bottom: clamp(var(--bj-s-5), 7vw, var(--bj-s-7));
	background: var(--bj-surface-alt);
}
.bj-ig__grid {
	list-style: none; margin: 0; padding: 0;
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 4px;
}
.bj-ig__tile {
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: var(--bj-radius-sm);
	background: var(--bj-hairline);
}
.bj-ig__tile a { display: block; width: 100%; height: 100%; }
.bj-ig__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--bj-dur-med) var(--bj-ease);
}
.bj-ig__tile:hover .bj-ig__img { transform: scale(1.04); }

@media (max-width: 900px) { .bj-ig__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .bj-ig__grid { grid-template-columns: repeat(2, 1fr); } }

/* --------------------------------------------------------------------------
   6. Newsletter section (yellow band)
   -------------------------------------------------------------------------- */
.bj-newsletter {
	background: var(--bj-yellow);
	color: var(--bj-yellow-ink);
	padding-top: clamp(var(--bj-s-5), 7vw, var(--bj-s-7));
	padding-bottom: clamp(var(--bj-s-5), 7vw, var(--bj-s-7));
}
.bj-newsletter__inner {
	text-align: center;
	max-width: 42rem;
	display: grid;
	gap: var(--bj-s-2);
}
.bj-newsletter__eyebrow { color: var(--bj-yellow-ink); opacity: 0.7; margin: 0; }
.bj-newsletter__heading { color: var(--bj-yellow-ink); margin: 0; }
.bj-newsletter__body    { color: var(--bj-yellow-ink); font-size: var(--bj-fs-400); margin: 0; opacity: 0.85; }

.bj-newsletter__form {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0.5rem;
	background: #fff;
	padding: 0.4rem;
	border-radius: var(--bj-radius-pill);
	max-width: 30rem;
	margin: var(--bj-s-2) auto 0;
	box-shadow: var(--bj-shadow-sm);
}
.bj-newsletter__form input[type="email"] {
	border: 0;
	background: transparent;
	padding: 0.85rem 1rem;
	font-size: var(--bj-fs-300);
	color: var(--bj-ink);
	min-width: 0;
}
.bj-newsletter__form input[type="email"]:focus { outline: none; }
.bj-newsletter__form button {
	background: var(--bj-ink);
	color: #fff;
	border-radius: var(--bj-radius-pill);
	padding: 0.85rem 1.25rem;
	font-weight: 600;
	border: 0;
	font-size: var(--bj-fs-200);
	transition: background var(--bj-dur-fast) var(--bj-ease);
}
.bj-newsletter__form button:hover { background: #000; }

.bj-newsletter__success {
	background: #fff;
	color: var(--bj-ink);
	border-radius: var(--bj-radius);
	padding: 1rem 1.25rem;
	margin: var(--bj-s-2) auto 0;
	max-width: 30rem;
}
.bj-newsletter__fineprint {
	color: var(--bj-yellow-ink);
	opacity: 0.7;
	font-size: var(--bj-fs-100);
	margin: var(--bj-s-1) 0 0;
}

@media (max-width: 520px) {
	.bj-newsletter__form {
		grid-template-columns: 1fr;
		border-radius: var(--bj-radius);
	}
	.bj-newsletter__form button { border-radius: var(--bj-radius-pill); }
}
