/**
 * Our Story page — story text/quote, craft process, values grid.
 * Shared .page-hero / .kanji-* / .brushmark / .story-image-wrap /
 * .section-title / .section-subtitle styles already live in
 * assets/css/style.css.
 */

.name-intro-text {
	text-align: center;
	margin-bottom: 3rem;
}
.craft-intro-text {
	text-align: center;
	margin-bottom: 1rem;
}
.story-intro-grid {
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	gap: 5rem;
	align-items: start;
}
.story-images {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}
.story-image-pair {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}
.story-image-wrap--square {
	aspect-ratio: 1;
	border-radius: 4px;
	box-shadow: var(--shadow-md);
}
/* .story-image-wrap / .craft-img-tall / .craft-img-short now wrap a core/image block's
   <figure> rather than a bare <img>; the figure must fill the box so the descendant
   `img { height:100% }` rules below still have a real height to resolve against. */
.story-image-wrap .wp-block-image,
.craft-img-tall .wp-block-image,
.craft-img-short .wp-block-image {
	margin: 0;
	width: 100%;
	height: 100%;
}
.story-full-text p {
	font-size: 1.05rem;
	line-height: 2;
	margin-bottom: 1.5rem;
	color: var(--text-mid);
}
.story-full-text p.lead {
	font-family: 'Allumi Std', 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
	font-size: 1.25rem;
	color: var(--navy);
	line-height: 1.8;
}
.pull-quote {
	border-left: 4px solid var(--gold);
	padding: 1.5rem 2rem;
	margin: 2.5rem 0;
	background: var(--gold-pale);
	border-radius: 0 var(--radius) var(--radius) 0;
}
.pull-quote blockquote {
	font-family: 'Allumi Std', 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
	font-size: 1.2rem;
	color: var(--navy);
	line-height: 1.7;
	font-style: italic;
}
.pull-quote cite {
	display: block;
	margin-top: 0.75rem;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--gold);
}

.process-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	/* Default grid align-items doesn't force equal-height rows here, so
	   shorter cards keep their own content height instead of matching the
	   tallest — make that explicit. */
	align-items: stretch;
	gap: 1.5rem;
	margin-top: 3rem;
}
/* .process-grid is a WP Group block (.is-layout-flow), which gives every
   child but the first a stray 24px margin-block-start — that extra margin
   was eating into the stretched height of 2 of the 3 cards. */
.process-grid > * { margin-block-start: 0; }
.process-card {
	text-align: center;
	padding: 2rem 1.5rem;
	background: white;
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	transition: transform var(--transition), box-shadow var(--transition);
	/* .process-grid items already stretch to equal height (grid's default
	   align-items), so this only needs to center each card's own content
	   vertically within that shared height. */
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.process-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.process-card:nth-child(2) { transition-delay: 0.15s; }
.process-card:nth-child(3) { transition-delay: 0.3s; }
.process-number {
	width: 42px;
	height: 42px;
	background: var(--navy);
	color: rgba(255,255,255,0.8);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Allumi Std', 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
	font-size: 1.05rem;
	font-weight: 800;
	margin: 0 auto 1.25rem;
}
.process-card h4 {
	font-family: 'Allumi Std', 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
	font-size: 1rem;
	color: var(--navy);
	margin-bottom: 0.5rem;
}
/* :not(.process-number) — otherwise this beats .process-number on
   specificity (class+type > class alone) and silently overrides its
   white/bold/large badge styling with small gray body-text styling. */
.process-card p:not(.process-number) { font-size: 0.82rem; color: var(--text-light); line-height: 1.7; }

.craft-images {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: stretch;
	gap: 1.5rem;
	margin: 3rem 0;
}
.craft-img-tall {
	aspect-ratio: 3/4;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow-md);
}
.craft-img-tall img { width: 100%; height: 100%; object-fit: cover; }
.craft-img-stack {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	/* Match the tall image's height exactly instead of relying on the two
	   short images' own intrinsic sizing, so both columns start and end
	   at the same top/bottom edge. */
	height: 100%;
}
.craft-img-short {
	flex: 1 1 0;
	min-height: 0; /* without this, flex's auto min-height keeps each short image at its natural size instead of splitting the stack evenly */
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow-md);
}
.craft-img-short img { width: 100%; height: 100%; object-fit: cover; }

.values-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	/* Default grid align-items doesn't force equal-height rows here, so
	   shorter cards keep their own content height instead of matching the
	   tallest — make that explicit. */
	align-items: stretch;
	gap: 1.5rem;
	margin-top: 3rem;
}
/* .values-grid is a WP Group block (.is-layout-flow), which gives every
   child but the first a stray 24px margin-block-start — that extra margin
   was eating into the stretched height of 3 of the 4 cards. */
.values-grid > * { margin-block-start: 0; }
.value-card {
	padding: 2rem;
	background: white;
	border-radius: var(--radius);
	border-top: 3px solid var(--gold);
	box-shadow: var(--shadow-sm);
	transition: transform var(--transition);
	/* justify-content:center would center each card's content independently
	   within the row's shared (stretched) height — since card lengths differ,
	   the icon/heading then sit at different vertical positions per card
	   (e.g. a longer paragraph leaves less empty space, pushing that card's
	   icon higher than the others'). flex-start keeps every icon starting
	   from the same top edge regardless of how much text follows it. */
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}
.value-card:hover { transform: translateY(-3px); }
.value-icon { margin-bottom: 1rem; color: var(--gold); }
.value-card h4 { font-family: 'Allumi Std', 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif; font-size: 1rem; color: var(--navy); margin-bottom: 0.5rem; }
.value-card p { font-size: 0.82rem; color: var(--text-light); line-height: 1.7; }

/* 4 equal columns get too cramped at iPad widths (each card ends up
   ~220px including its own 2rem padding) — drop to 2 columns through the
   whole tablet range, not just below the 768px mobile breakpoint. */
@media (max-width: 1024px) {
	.values-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
	.story-intro-grid { grid-template-columns: 1fr; gap: 3rem; }
	.process-grid { grid-template-columns: 1fr; }
	.craft-images { grid-template-columns: 1fr; }
	.craft-img-tall { aspect-ratio: 16/9; }
	/* Stacked into one column, craft-img-stack is its own row now — there's
	   no sibling row height left to stretch to, so let it size naturally. */
	.craft-img-stack { height: auto; }
	.craft-img-short { aspect-ratio: 16/9; }
}
@media (max-width: 480px) {
	.values-grid { grid-template-columns: 1fr; }
}
