/* EDRAK / creative designs — centered final item and refined presentation.
 * 3-column desktop, 2-column tablet, single-column mobile.
 * Last card is centered in its partially-filled row. */
body.tyz-site-v1 #edrak-design-work .tyz-edrak-designs__grid {
  align-items:stretch;
  row-gap:clamp(20px,2.4vw,34px);
}
body.tyz-site-v1 #edrak-design-work .tyz-edrak-designs__item {
  display:flex;
  flex-direction:column;
  min-width:0;
  background:linear-gradient(152deg,#183b57 0%,#0c2339 82%,#081b30 100%);
  border:1px solid rgba(238,191,122,.43);
  border-radius:clamp(18px,1.75vw,24px);
  overflow:hidden;
  box-shadow:0 18px 40px rgba(0,7,20,.26),inset 0 1px 0 rgba(255,226,168,.07);
  transition:border-color .3s ease,box-shadow .4s ease,transform .4s cubic-bezier(.2,1,.3,1);
}
body.tyz-site-v1 #edrak-design-work .tyz-edrak-designs__item>a {
  display:block;position:relative;
  padding:clamp(9px,1vw,14px);
  background:linear-gradient(160deg,#0a273e,#061b30);
  flex:0 0 auto;
}
body.tyz-site-v1 #edrak-design-work .tyz-edrak-designs__item img {
  display:block;width:100%;
  aspect-ratio:4/5;
  height:auto;
  object-fit:contain;
  background:transparent;
  border-radius:clamp(11px,1vw,15px);
}
body.tyz-site-v1 #edrak-design-work .tyz-edrak-designs__item figcaption {
  display:flex;
  flex:1 0 auto;
  gap:clamp(14px,1.4vw,23px);
  align-items:center;
  justify-content:space-between;
  min-height:99px;
  padding:clamp(18px,1.8vw,26px);
  border-top:1px solid rgba(235,194,132,.16);
  background:linear-gradient(115deg,rgba(16,47,69,.96),rgba(9,29,49,.97));
}
body.tyz-site-v1 #edrak-design-work .tyz-edrak-designs__item figcaption strong {
  display:block;
  color:#f7d49b;
  font-size:clamp(15px,1.2vw,18px);
  line-height:1.7;
  font-weight:850;
}
body.tyz-site-v1 #edrak-design-work .tyz-edrak-designs__item figcaption small {
  display:block;margin-top:4px;
  color:#d6e2ed;
  font-size:clamp(12px,.9vw,14px);
  line-height:1.75;
}
body.tyz-site-v1 #edrak-design-work .tyz-edrak-designs__item figcaption b {
  flex:0 0 auto;
  display:grid;place-items:center;
  width:40px;height:40px;
  border:1px solid rgba(239,191,117,.4);
  border-radius:50%;
  background:rgba(238,176,92,.075);
  color:#f5c984;
  font:800 12px/1 Arial,sans-serif;
}
/* The 07 card is centered in its own row, ahead of 04-06. */
@media(min-width:901px) {
 body.tyz-site-v1 #edrak-design-work .tyz-edrak-designs__grid
 >.tyz-edrak-designs__item--featured {
  grid-column:1/-1;
  justify-self:center;
  width:calc((100% - 2 * clamp(13px,1.8vw,24px)) / 3);
  max-width:480px;
 }
}
@media(min-width:661px) and (max-width:900px) {
 body.tyz-site-v1 #edrak-design-work .tyz-edrak-designs__grid
 >.tyz-edrak-designs__item:nth-child(3),
 body.tyz-site-v1 #edrak-design-work .tyz-edrak-designs__grid
 >.tyz-edrak-designs__item--featured,
 body.tyz-site-v1 #edrak-design-work .tyz-edrak-designs__grid
 >.tyz-edrak-designs__item:last-child {
  grid-column:1/-1;
  justify-self:center;
  width:calc((100% - clamp(13px,1.8vw,24px)) / 2);
  max-width:480px;
 }
}
@media(max-width:660px) {
 body.tyz-site-v1 #edrak-design-work .tyz-edrak-designs__grid
 >.tyz-edrak-designs__item--featured {
  grid-column:1;
  justify-self:center;
  width:100%;
  max-width:480px;
 }
 body.tyz-site-v1 #edrak-design-work .tyz-edrak-designs__item figcaption {
  min-height:84px;
  padding:16px;
 }
}
@media(hover:hover) and (prefers-reduced-motion:no-preference){
 body.tyz-site-v1 #edrak-design-work .tyz-edrak-designs__item:hover {
   transform:translateY(-4px);
   border-color:rgba(255,218,148,.85);
   box-shadow:0 26px 54px rgba(0,6,19,.32),0 0 18px rgba(237,170,82,.12);
 }
}
@media(prefers-reduced-motion:reduce){
 body.tyz-site-v1 #edrak-design-work .tyz-edrak-designs__item {
   transition:none!important;
 }
}

/* EDRAK CREATIVE CARDS — premium editorial typography animation, 2026-11-05.
   Accessible readable text. The animation starts only when visible and plays once.
   No text splitting and no opacity gate for browsers with JS disabled. */
body.tyz-site-v1 #edrak-design-work .tyz-edrak-designs__item--featured {
  border-color:rgba(246,201,130,.66);
  box-shadow:0 22px 55px rgba(0,8,21,.29),0 0 18px rgba(232,166,74,.1);
}
body.tyz-site-v1 #edrak-design-work .tyz-edrak-designs__item figcaption strong {
  position:relative;
  width:fit-content;
  max-width:100%;
}
body.tyz-site-v1 #edrak-design-work .tyz-edrak-designs__item figcaption strong::after{
  content:"";
  display:block;
  width:clamp(36px,4vw,64px);
  height:2px;
  margin-top:5px;
  border-radius:8px;
  background:linear-gradient(90deg,#e1a453,#ffdb9c);
  transform:scaleX(.8);
  transform-origin:right center;
  opacity:.68;
  transition:transform .55s ease,width .55s ease,opacity .55s ease;
}
body.tyz-site-v1 #edrak-design-work .tyz-edrak-designs__item:hover figcaption strong::after{
  width:clamp(55px,5vw,90px);
  opacity:1;
}
@media(prefers-reduced-motion:no-preference){
 body.tyz-site-v1 #edrak-design-work .tyz-edrak-designs__item.edrak-design-text-on figcaption strong{
   animation:edrak-design-heading-entrance 1.05s cubic-bezier(.19,1,.28,1) both;
 }
 body.tyz-site-v1 #edrak-design-work .tyz-edrak-designs__item.edrak-design-text-on figcaption small{
   animation:edrak-design-description-entrance 1.1s cubic-bezier(.19,1,.28,1) .20s both;
 }
 body.tyz-site-v1 #edrak-design-work .tyz-edrak-designs__item.edrak-design-text-on figcaption b{
   animation:edrak-design-number-entrance .95s cubic-bezier(.19,1,.28,1) .33s both;
 }
 body.tyz-site-v1 #edrak-design-work .tyz-edrak-designs__item.edrak-design-text-on figcaption strong::after{
   animation:edrak-design-underline-entrance 1.25s cubic-bezier(.19,1,.28,1) .39s both;
 }
 body.tyz-site-v1 #edrak-design-work .tyz-edrak-case__chapter--visuals.edrak-design-title-on h2{
   animation:edrak-design-heading-entrance 1.12s cubic-bezier(.19,1,.28,1) both;
 }
 body.tyz-site-v1 #edrak-design-work .tyz-edrak-case__chapter--visuals.edrak-design-title-on p{
   animation:edrak-design-description-entrance 1.1s cubic-bezier(.19,1,.28,1) .17s both;
 }
}
@keyframes edrak-design-heading-entrance {
  from {opacity:.38;transform:translate3d(0,17px,0);filter:blur(1.5px)}
  to {opacity:1;transform:translate3d(0,0,0);filter:blur(0)}
}
@keyframes edrak-design-description-entrance {
  from {opacity:.52;transform:translate3d(0,12px,0)}
  to {opacity:1;transform:translate3d(0,0,0)}
}
@keyframes edrak-design-number-entrance {
  from {opacity:.45;transform:translate3d(-5px,0,0) scale(.94)}
  to {opacity:1;transform:translate3d(0,0,0) scale(1)}
}
@keyframes edrak-design-underline-entrance {
  from {opacity:0;transform:scaleX(.08)}
  to {opacity:.68;transform:scaleX(.8)}
}
@media(prefers-reduced-motion:reduce){
 body.tyz-site-v1 #edrak-design-work
 :is(.tyz-edrak-designs__item figcaption strong,
      .tyz-edrak-designs__item figcaption small,
      .tyz-edrak-designs__item figcaption b,
      .tyz-edrak-designs__item figcaption strong::after,
      .tyz-edrak-case__chapter--visuals h2,
      .tyz-edrak-case__chapter--visuals p) {
   animation:none!important;transition:none!important;
 }
}
