/* Photricity 8: homepage hero (blueprint mark, code chips). Loaded when a .hero section renders. */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding-top: calc(var(--header-h) + 40px); padding-bottom: 96px; overflow: clip; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; background: linear-gradient(transparent, var(--night-950)); pointer-events: none; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-8); align-items: center; }
.hero-copy { display: grid; gap: var(--space-5); justify-items: start; }
.hero h1 { max-width: 13ch; }
.hero h1 .accent { color: var(--amber-300); }
.hero h1 .ln { display: block; }
.hero :is(.lead, .is-style-lead) { max-width: 52ch; }

.hero-art { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 520px; justify-self: end; }
.hero-art .layer { position: absolute; inset: 0; translate: calc(var(--mxp, 0) * var(--d) * 1px) calc((var(--myp, 0) * var(--d) + var(--sy, 0) * var(--sd)) * 1px); transition: translate 700ms var(--ease-out); }
.hero-art svg.mark { position: absolute; left: 2%; top: 16%; width: 96%; height: 68%; overflow: visible; }
.hero-art .glow { position: absolute; left: 32%; top: 28%; width: 36%; height: 44%; border-radius: 50%; background: radial-gradient(circle, rgba(255,165,61,.22), transparent 65%); filter: blur(24px); }
/* blueprint mark: guides, labels, stroked outlines and anchor points, like the footer wordmark */
.mark .hg { fill: none; stroke: var(--cyan-300); stroke-opacity: .16; stroke-width: 1; stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; }
.mark .hl { fill: var(--cyan-300); fill-opacity: .5; font-family: var(--font-mono); font-size: 6.4px; letter-spacing: .4px; text-transform: uppercase; }
/* outlines stroke in user units (no non-scaling-stroke: it breaks pathLength dashes); the dash only exists during the draw-in */
.mark .ho { fill: rgba(92,225,230,.035); stroke: var(--cyan-300); stroke-opacity: .75; stroke-width: .9; stroke-linejoin: round; stroke-linecap: round; }
.mark .hb { stroke: var(--amber-300); stroke-opacity: .95; fill: rgba(255,187,102,.14); }
.mark .ha rect { fill: var(--night-950); stroke: var(--amber-300); stroke-opacity: .75; stroke-width: 1; vector-effect: non-scaling-stroke; }
.js .mark .ho { animation: hdraw 1.6s var(--ease-in-out) .2s both; }
.js .mark .hb { animation-delay: .5s; }
.js .mark :is(.hg, .hl) { animation: hfade 1s var(--ease-out) both; }
.js .mark .ha { animation: hfade .8s var(--ease-out) 1.6s both; }
@keyframes hdraw { from { stroke-dasharray: 1 1; stroke-dashoffset: 1; } 99% { stroke-dasharray: 1 1; stroke-dashoffset: 0; } to { stroke-dasharray: none; stroke-dashoffset: 0; } }
@keyframes hfade { from { opacity: 0; } }
.js .hero-art .chip { animation: chip-float 7s var(--ease-in-out) calc(var(--f, 0) * -1.1s) infinite alternate; }
@keyframes chip-float { from { translate: 0 -4px; } to { translate: 0 4px; } }
.hero-art .chip { position: absolute; padding: 8px 12px; border: 1px solid var(--night-700); background: rgba(18,21,28,.92); border-radius: 10px; font-family: var(--font-mono); font-size: .75rem; color: var(--night-100); white-space: nowrap; box-shadow: 0 12px 30px -12px rgba(0,0,0,.6); }
.chip .k { color: var(--cyan-300); } .chip .s { color: var(--amber-300); }
@media (width < 1200px) { .hero-art .chip { font-size: .6875rem; padding: 6px 10px; } .hero-art .chip.x { display: none; } }
@media (width < 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  /* phones fill the viewport like desktop; content centred in the space below the fixed header */
  .hero { min-height: 100vh; min-height: 100svh; padding-top: calc(var(--header-h) + 24px); padding-bottom: 64px; }
  .hero-art { display: none; }
}
/* short phones (e.g. 360x640): tighter rhythm so the hero still fits one screen */
@media (width < 960px) and (height < 720px) {
  .hero { padding-top: calc(var(--header-h) + 8px); padding-bottom: 20px; }
  .hero-copy { gap: var(--space-4); }
  .hero-actions { gap: 12px; margin-top: 0; }
  .hero :is(.btn-xl, .btn-xl > .wp-block-button__link) { --h: 54px; --px: 28px; }
}
.hero h1 { font-size: clamp(2.5rem, 1.2rem + 4.4vw, 5.75rem); max-width: 16ch; }
.divider svg { translate: 0 0; }
.js .hero h1 { animation: settle 1.2s var(--ease-out) both; transform-origin: 0 100%; }
@keyframes settle { from { scale: 1.05 1; letter-spacing: 0; } to { scale: 1 1; } }
@media (width < 960px) {
  .hero-grid { gap: var(--space-5); }
}
