/* Styling kit for kamranzahid.me (styling-kit skill v1.0, KZ 02-12-26). Theme: sunrise over the mountains.
   Chosen: ia04 "sunrise reveal", ia02 "dawn glow" (closing band only), ia01 magnetic buttons (subtle, KZ 02-12-26), ia06 card lift, ia10 back to top.
   Already in gc.css: ia05 sticky header, ia09 smooth scrolling, button hover. Skipped on purpose: ia03, ia07, ia08. */

/* ia04 Sunrise reveal: sections below the first screen rise 16px and fade in, like the sun clearing the ridge. */
@media (prefers-reduced-motion:no-preference){
  .js [data-reveal]{opacity:0;transform:translateY(16px);transition:opacity .6s var(--ease,ease),transform .6s var(--ease,ease)}
  .js [data-reveal].is-in{opacity:1;transform:none}
}

/* ia02 Dawn glow: a warm light follows the mouse over the dark closing band (mouse only). */
.close-band{position:relative;isolation:isolate}
.close-band::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:0;transition:opacity .5s;background:radial-gradient(520px circle at var(--mx,50%) var(--my,70%),color-mix(in srgb,var(--wp--preset--color--primary,#FF9F41) 22%,transparent),transparent 70%)}
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){.close-band:hover::before{opacity:1}}

/* ia06 Hover feedback for cards and tiles: the same hand-cut offset shadow as the buttons. */
@media (prefers-reduced-motion:no-preference){
  :where(.card,.vcard,.kpi__list>div>a){transition:transform .2s var(--ease,ease),box-shadow .2s var(--ease,ease)}
}
@media (hover:hover){
  :where(.card,.vcard):has(a):hover{transform:translate(-2px,-2px);box-shadow:4px 4px 0 var(--wp--preset--color--ink,#1A1A1A)}
}
:where(.card,.vcard):has(a:focus-visible){box-shadow:4px 4px 0 var(--wp--preset--color--ink,#1A1A1A)}

/* ia10 Back to top: a small square in the button style, after one and a half screens. */
.kz-top{position:fixed;right:max(16px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom));z-index:90;width:48px;height:48px;display:grid;place-items:center;padding:0;font:800 1.25rem/1 inherit;color:var(--wp--preset--color--ink,#1A1A1A);background:var(--wp--preset--color--primary,#FF9F41);border:2px solid var(--wp--preset--color--edge,#B04C00);border-radius:0;cursor:pointer;opacity:0;visibility:hidden;transition:opacity .3s,visibility .3s,transform .2s}
.kz-top.is-on{opacity:1;visibility:visible}
.kz-top:hover{transform:translate(-2px,-2px);box-shadow:4px 4px 0 var(--wp--preset--color--ink,#1A1A1A)}
.kz-top:focus-visible{outline:3px solid var(--wp--preset--color--text-safe,#B04C00);outline-offset:3px}
@media print{.kz-top{display:none}}

/* ia01 Magnetic buttons: the drift eases in and out; transform (hover shadow-shift) keeps its own timing. */
@media (prefers-reduced-motion:no-preference){[data-magnetic]{transition:translate .35s var(--ease,ease),transform .2s var(--ease,ease),box-shadow .2s var(--ease,ease),background-color .2s var(--ease,ease)}}

/* Button hover = colour inverse (KZ, 02-12-26). Same lift and offset shadow as before, colours swapped:
   light sections: ink fill, orange text, orange shadow; dark sections: dark fill, orange text, orange border and shadow
   (an ink fill would vanish into the dark band). Keyboard focus gets the same look. Orange on ink = 8.6:1. */
:is(.btn,.wp-block-button__link,.kz-form button[type=submit],.kz-top){transition:translate .35s var(--ease,ease),transform .2s var(--ease,ease),box-shadow .2s var(--ease,ease),background-color .2s var(--ease,ease),color .2s var(--ease,ease),border-color .2s var(--ease,ease)}
.btn:is(:hover,:focus-visible),.wp-block-button__link:is(:hover,:focus-visible),.kz-top:is(:hover,:focus-visible),.kz-form button[type=submit]:is(:hover,:focus-visible){background:var(--ink);color:var(--primary);border-color:var(--ink);box-shadow:4px 4px 0 var(--primary)}
.band--dark .btn:is(:hover,:focus-visible),.band--dark .wp-block-button__link:is(:hover,:focus-visible),.site-footer .btn:is(:hover,:focus-visible){background:var(--wp--preset--color--dark,#1B0F08);color:var(--primary);border-color:var(--primary);box-shadow:4px 4px 0 var(--primary)}
.btn:active,.wp-block-button__link:active,.kz-top:active,.kz-form button[type=submit]:active{background:var(--ink);color:var(--primary);box-shadow:none;transform:none}
.btn:hover::after{background:linear-gradient(110deg,transparent 35%,rgb(255 159 65/.28) 50%,transparent 65%)}
@media (prefers-reduced-motion:reduce){.btn:is(:hover,:focus-visible),.wp-block-button__link:is(:hover,:focus-visible),.kz-top:is(:hover,:focus-visible){transform:none}}
