/*---------------------------------------------------
	BLOG HERO (.sv-phero) — mirrors the main site's inner-page hero (.phero in css/style.css)
	and its animated line-art (.hv in css/inner.css, copied below unchanged).
	Tokens are scoped to the hero so the legacy blog styles are untouched.
---------------------------------------------------*/
.sv-phero{
	--orange: #fb8317; --on-orange: #000000;
	--bg: #ffffff; --bg-alt: #fff6ed; --surface: #ffffff;
	--fg: #000000; --fg-2: rgba(0, 0, 0, .8); --muted: rgba(0, 0, 0, .64);
	--line: rgba(0, 0, 0, .12); --dots: rgba(0, 0, 0, .12); --accent-soft: rgba(251, 131, 23, .12);
	--font: Lato, sans-serif;
	--ease: cubic-bezier(.22, 1, .36, 1); --ease-in-out: cubic-bezier(.65, 0, .35, 1);
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: clamp(40px, 7vw, 60px) 0 clamp(48px, 7vw, 60px);
	background: linear-gradient(180deg, #fee3ca 0%, #fff6ed 55%, #ffffff 100%);
	color: var(--fg);
	font-family: var(--font);
	text-align: left;
}
.sv-phero *, .sv-phero *::before, .sv-phero *::after{ box-sizing: border-box; }
.sv-phero a, .sv-phero a:hover, .sv-phero a:focus{ text-decoration: none; } /* legacy theme underlines links */
/* dotted texture fading out downwards */
.sv-phero::before{
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background-image: radial-gradient(var(--dots) 1px, transparent 1.2px); background-size: 28px 28px;
	-webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.sv-phero__grid{ display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px){ .sv-phero__grid{ grid-template-columns: 1.15fr 1fr; gap: 32px; } }

.sv-eyebrow{
	display: inline-flex; align-items: center; gap: 12px; margin: 0 0 20px;
	font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; line-height: 1.4; color: var(--fg-2);
}
.sv-eyebrow::before{ content: ""; width: 28px; height: 2px; background: var(--orange); }

.sv-phero__title{
	margin: 0 0 28px; padding: 0; border: 0;
	font-family: var(--font); font-size: clamp(32px, 4.4vw, 57px); line-height: .98; font-weight: 900; letter-spacing: -.035em;
	color: var(--fg) !important; /* the legacy theme colours h1 blue */ text-transform: none;
}
/* black headline wins over any heading/span colour from the legacy theme or WordPress plugins */
.sv-phero .sv-phero__title, .sv-phero .sv-phero__title .line, .sv-phero .sv-phero__title .line > span{ color: #000000 !important; -webkit-text-fill-color: currentColor !important; background: none !important; text-shadow: none !important; }
.sv-phero .sv-phero__title em{ font: inherit; font-style: normal; color: var(--orange) !important; -webkit-text-fill-color: currentColor !important; background: none !important; } /* orange word; also resets the legacy theme's small <em> */
/* lines rise into place, like the main site's mask reveal */
.sv-phero__title .line{ display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.sv-phero__title .line > span{ display: inline-block; animation: sv-rise 1.1s var(--ease) both; }
.sv-phero__title .line:nth-child(2) > span{ animation-delay: .1s; }
.sv-phero__title .line:nth-child(3) > span{ animation-delay: .2s; }
@keyframes sv-rise{ from{ transform: translateY(105%); } }

.sv-phero__lede{
	max-width: 44ch; margin: 0 0 36px;
	font-size: clamp(15px, 1.2vw, 16.5px); line-height: 1.65; color: var(--muted);
	animation: sv-fade-up .9s var(--ease) .25s both;
}
.sv-phero__ctas{ display: flex; flex-wrap: wrap; gap: 12px; align-items: center; animation: sv-fade-up .9s var(--ease) .35s both; }
@keyframes sv-fade-up{ from{ opacity: 0; transform: translateY(24px); } }

/* large + outline button variants (base .sv-btn lives in sv-header-footer.css) */
.sv-phero .sv-btn--lg{ min-height: 56px; padding: 14px 30px; font-size: 16px; }
.sv-btn--outline{ --b-bg: transparent; --b-fg: var(--sv-fg, #000); --b-bd: var(--sv-fg, #000); }
.sv-btn--outline:hover, .sv-btn--outline:focus{ --b-bg: var(--sv-fg, #000); --b-fg: #ffffff; }

.sv-phero__visual{ position: relative; width: 100%; max-width: 560px; margin-inline: auto; }

/* floating restaurant line-art: each icon draws itself in, then bobs */
.sv-phero__bg{ position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.sv-phero__art{ position: absolute; color: var(--orange); opacity: .35; }
.sv-phero__art svg{
	display: block; width: var(--s, 64px); height: var(--s, 64px); rotate: var(--r, 0deg);
	fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round;
	stroke-dasharray: 1; stroke-dashoffset: 1;
	animation: sv-art-draw 2.2s var(--ease-in-out) var(--dd, .3s) forwards, sv-art-bob 5s ease-in-out var(--bd, 0s) infinite;
}
@keyframes sv-art-draw{ to{ stroke-dashoffset: 0; } }
@keyframes sv-art-bob{ 0%, 100%{ translate: 0 0; } 50%{ translate: 0 -12px; } }
.sv-phero__art--chef    { left: 3%;   top: 14%; --s: 78px; --r: -10deg; --dd: .2s; --bd: -1s; }
.sv-phero__art--pizza   { left: 44%;  top: 8%;  --s: 54px; --r: 14deg;  --dd: .5s; --bd: -2.2s; }
.sv-phero__art--burger  { left: 50%;  bottom: 10%; --s: 56px; --r: -8deg; --dd: .8s; --bd: -3s; }
.sv-phero__art--utensils{ right: 2%;  top: 18%; --s: 72px; --r: 12deg;  --dd: .4s; --bd: -.6s; }
.sv-phero__art--plate   { right: 6%;  bottom: 6%; --s: 90px;            --dd: .9s; --bd: -4s; }
.sv-phero__art--menu    { left: 2%;   bottom: 12%; --s: 56px; --r: 8deg; --dd: 1s; --bd: -1.6s; }
.sv-phero__art--table   { left: 30%;  bottom: 4%; --s: 52px;            --dd: 1.2s; --bd: -2.6s; }
.sv-phero__art--delivery{ right: 40%; top: 4%;  --s: 50px; --r: -6deg;  --dd: .7s; --bd: -3.4s; }
/* the left-edge icons sit in the page margin only on wide screens; hide them before they reach the text */
@media (max-width: 1499px){ .sv-phero__art--chef, .sv-phero__art--menu{ display: none; } }
@media (max-width: 899px){
	.sv-phero__art{ opacity: .18; }
	.sv-phero__art--pizza, .sv-phero__art--burger, .sv-phero__art--table, .sv-phero__art--delivery{ display: none; }
}

/* ---- animated line-art, copied from css/inner.css (.hv) ---- */
.hv { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--font); color: var(--fg); }
.hv text { font-family: var(--font); }

/* paint */
.hv .ln   { fill: none; stroke: var(--fg); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hv .ln-o { stroke: var(--orange); }
.hv .ln-m { stroke: var(--line); }
.hv .ln-s { stroke-width: 1.5; }
.hv .ln-b { stroke-width: 3; }
.hv .f-o   { fill: var(--orange); }
.hv .f-fg  { fill: var(--fg); }
.hv .f-bg  { fill: var(--bg); }
.hv .f-s   { fill: var(--surface); }
.hv .f-alt { fill: var(--bg-alt); }
.hv .f-soft { fill: var(--accent-soft); }
.hv .f-line { fill: var(--line); }
.hv .card { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .1)); }
[data-theme="dark"] .hv .card { filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .6)); }
.hv .card--ink { fill: var(--fg); stroke: var(--fg); }
.hv .card--o { fill: var(--orange); stroke: var(--orange); }
.hv .ic { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.hv .c-o  { color: var(--orange); }
.hv .c-on { color: var(--on-orange); }
.hv .c-bg { color: var(--bg); }

/* type inside the art */
.hv .t    { font-size: 14px; font-weight: 900; fill: var(--fg); letter-spacing: -.01em; }
.hv .t-l  { font-size: 22px; font-weight: 900; fill: var(--fg); letter-spacing: -.02em; }
.hv .t-xl { font-size: 34px; font-weight: 900; fill: var(--fg); letter-spacing: -.03em; }
.hv .t-s  { font-size: 11px; font-weight: 700; fill: var(--muted); }
.hv .t-k  { font-size: 10px; font-weight: 900; fill: var(--fg-2); letter-spacing: .14em; text-transform: uppercase; }
.hv .t-on { fill: var(--on-orange); }
.hv .t-bg { fill: var(--bg); }
.hv .t-o  { fill: var(--orange); }

/* motion — dashes use 1.5 (not 1) because Chrome scales pathLength without the
   implicit closepath segment, which would leave closed shapes partly undrawn */
.hv .draw { stroke-dasharray: 1.5; stroke-dashoffset: 1.5; animation: hv-draw 1.6s var(--ease-in-out) var(--d, 0s) forwards; }
.hv .pop  { opacity: 0; animation: hv-pop .8s var(--ease) var(--d, 0s) forwards; }
.hv .bob  { animation: hv-bob 6s ease-in-out var(--d, 0s) infinite; }
.hv .spin { transform-box: fill-box; transform-origin: center; animation: hv-spin var(--t, 40s) linear infinite; }
.hv .spin-r { animation-direction: reverse; }
.hv .flow { stroke-dasharray: 3 7; animation: hv-flow 1.1s linear infinite; }
.hv .pulse { transform-box: fill-box; transform-origin: center; animation: hv-pulse 2.4s ease-out var(--d, 0s) infinite; }
.hv .grow { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); animation: hv-grow 1s var(--ease) var(--d, 0s) forwards; }
.hv .grow-x { transform-box: fill-box; transform-origin: 0 50%; transform: scaleX(0); animation: hv-grow-x 1.2s var(--ease) var(--d, 0s) forwards; }
.hv .blink { animation: hv-blink 2.6s steps(1) var(--d, 2s) infinite; }
.hv .swing { transform-box: fill-box; transform-origin: 50% 0; animation: hv-swing 5s ease-in-out infinite; }
.hv .fall { animation: hv-fall var(--t, 3s) cubic-bezier(.45, 0, .55, 1) var(--d, 0s) infinite; }
.hv .tick { stroke-dasharray: 1.5; stroke-dashoffset: 1.5; animation: hv-tick var(--t, 6s) var(--ease) var(--d, 0s) infinite; }
.hv .type { animation: hv-type var(--t, 6s) steps(1) var(--d, 0s) infinite; }

.hv .glow  { animation: hv-glow 4s ease-in-out infinite; }
.hv .wave  { animation: hv-wave 2.2s ease-in-out var(--d, 0s) infinite; }
.hv .steam { animation: hv-steam 2.8s ease-in-out var(--d, 0s) infinite; }
.hv .cursor { animation: hv-cursor 7s var(--ease-in-out) infinite; }
.hv .t-bgs { font-size: 11px; font-weight: 700; fill: var(--bg); opacity: .7; }

@keyframes hv-glow  { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@keyframes hv-wave  { 0%, 100% { opacity: .15; } 40% { opacity: 1; } }
@keyframes hv-cursor {
  0%, 100% { transform: translate(0, 0); }
  25%, 35% { transform: translate(-150px, -40px); }
  55%, 65% { transform: translate(-60px, 70px); }
  80%      { transform: translate(40px, 10px); }
}
@keyframes hv-draw  { to { stroke-dashoffset: 0; } }
@keyframes hv-spin  { to { transform: rotate(360deg); } }
@keyframes hv-blink { 0%, 80% { opacity: 1; } 85% { opacity: .2; } 90% { opacity: 1; } }
@keyframes hv-steam { 0% { opacity: 0; transform: translateY(6px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes hv-pop   { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes hv-bob   { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes hv-flow  { to { stroke-dashoffset: -20; } }
@keyframes hv-pulse { 0% { transform: scale(.7); opacity: .7; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes hv-grow  { to { transform: scaleY(1); } }
@keyframes hv-grow-x { to { transform: scaleX(1); } }
@keyframes hv-swing { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes hv-fall  { 0% { transform: translateY(-20px); opacity: 0; } 15% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(150px); opacity: 0; } }
/* draws in, holds, then resets — a repeating checkmark / sparkline */
@keyframes hv-tick  { 0% { stroke-dashoffset: 1.5; } 25%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes hv-type  { 0% { opacity: 0; } 12%, 90% { opacity: 1; } 100% { opacity: 0; } }

/* paused while off-screen (toggled by main.js) */
.hv.is-paused, .hv.is-paused * { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
  .hv .draw, .hv .tick { stroke-dashoffset: 0 !important; }
  .hv .pop, .hv .type { opacity: 1 !important; }
  .hv .grow, .hv .grow-x { transform: none !important; }
  .hv .pulse, .hv .fall { display: none; }
}

@media (prefers-reduced-motion: reduce){
	.sv-phero__title .line > span, .sv-phero__lede, .sv-phero__ctas{ animation: none; }
	.sv-phero__art svg{ animation: none; stroke-dashoffset: 0; }
}
