/* /work/ only. Loaded after gcd.css. */

/* ---------- hero ---------- */
.work-hero{padding:144px 0 80px}
.page-stone{position:absolute;inset:0;z-index:-1;pointer-events:none;-webkit-mask-image:linear-gradient(180deg,rgba(0,0,0,.9) 0%,rgba(0,0,0,.5) 55%,transparent 100%);mask-image:linear-gradient(180deg,rgba(0,0,0,.9) 0%,rgba(0,0,0,.5) 55%,transparent 100%)}
.page-stone img{width:100%;height:100%;object-fit:cover;object-position:50% 35%;opacity:.2}
.work-hero .glow-hero{top:20px;width:min(820px,95vw);height:300px;opacity:.9}
.work-hero h1{max-width:16ch}
.work-hero .hero-sub{max-width:600px}
.work-hero .page-hero-inner > *{animation:gcd-rise 900ms var(--ease-reveal) both}
.work-hero .page-hero-inner > :nth-child(2){animation-delay:70ms}
.work-hero .page-hero-inner > :nth-child(3){animation-delay:140ms}
.work-hero .page-hero-inner > :nth-child(4){animation-delay:210ms}

/* ---------- gallery ---------- */
.work-section{padding-top:32px}
.work-note{display:flex;align-items:center;gap:12px;margin:0 0 28px;font-size:15px;line-height:1.5;color:var(--text-2)}
.work-note svg{width:20px;height:20px;flex:none;padding:4px;border-radius:50%;background:rgba(243,195,0,.14);color:var(--yellow)}
.work-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}

.work-card{position:relative;display:flex;flex-direction:column;padding:12px 12px 26px;border-radius:var(--r-card);background:var(--surface);border:1px solid var(--line);overflow:hidden;isolation:isolate;transition:border-color 300ms ease,translate 300ms var(--ease-lift),scale 160ms var(--ease-out)}
.work-card::after{content:"";position:absolute;width:300px;height:300px;right:-140px;bottom:-170px;border-radius:999px;background:rgba(243,195,0,.13);filter:blur(80px);z-index:-1;opacity:.7;pointer-events:none;transition:opacity 300ms ease}

/* tag row: Sample design, trade, town (same pills as the home proof card) */
.work-card .tag-row{order:1;display:flex;flex-wrap:wrap;gap:8px;margin:22px 12px 0}
.work-card .tag{line-height:1.3}
.work-card .tag.tag-sample{color:var(--yellow-soft);border-color:rgba(243,195,0,.32);background:rgba(243,195,0,.06)}
.work-card h2{order:2;margin:16px 12px 0;font-size:24px;font-weight:500;letter-spacing:-.025em;line-height:1.15}
.work-card .card-line{order:3;margin:8px 12px 0;font-size:15px;line-height:1.55;color:var(--text-2);max-width:46ch}

/* the desktop shot (16:10) inside a browser frame, drawn like the home proof card */
.work-card .frame{order:0;display:flex;flex-direction:column;border-radius:var(--r-panel);overflow:hidden;background:#0f0f11;border:1px solid var(--line-2);box-shadow:0 18px 40px -22px rgba(0,0,0,.8);transition:border-color 300ms ease,box-shadow 300ms ease}
.work-card .frame-bar{display:flex;align-items:center;gap:6px;flex:none;height:40px;padding:0 14px;background:#18181b;border-bottom:1px solid var(--line)}
.work-card .frame-bar > span:not(.frame-url){flex:none;width:9px;height:9px;border-radius:50%;background:#3a3a3f}
.work-card .frame-url{flex:1;min-width:0;height:24px;margin-left:6px;display:block;line-height:24px;text-align:center;border-radius:999px;background:rgba(255,255,255,.05);font-size:11.5px;color:var(--text-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 10px}
.work-card .frame img{display:block;width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;object-position:top;background:var(--bg-3)}

.work-card .link{order:4;align-self:flex-start;display:inline-flex;align-items:center;gap:8px;min-height:44px;margin:10px 12px -10px;font-size:14px;font-weight:600;color:var(--yellow);transition:color 200ms ease}
.work-card .link::after{content:"";width:15px;height:15px;background:currentColor;transition:transform 200ms var(--ease-out);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/100% no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/100% no-repeat}
/* the whole card opens the preview */
.work-card .link::before{content:"";position:absolute;inset:0;z-index:1;border-radius:inherit}
.work-card .link:focus-visible{outline:none}
.work-card:has(.link:focus-visible){outline:2px solid var(--yellow);outline-offset:3px}
.work-card:active{scale:.99}
@media (hover:hover) and (pointer:fine){
  .work-card:hover{border-color:rgba(243,195,0,.3);translate:0 -4px}
  .work-card:hover .frame{border-color:rgba(243,195,0,.3);box-shadow:0 24px 48px -22px rgba(0,0,0,.85),0 0 0 1px rgba(243,195,0,.18)}
  .work-card:hover::after{opacity:1}
  .work-card:hover .link{color:var(--yellow-light)}
  .work-card:hover .link::after{transform:translateX(3px)}
}

/* mixed card sizes. The build marks the cards: .feature leads full width (the featured sample, or the
   first design), .wide-3 runs two columns wide in the three column grid and .wide-2 in the two column
   grid, so every row is full. A wide card shows its shot on the left and the text on the right. */
.work-card.feature{grid-column:1/-1}
.work-card.feature h2{font-size:clamp(28px,3vw,40px);letter-spacing:-.03em;line-height:1.08}
.work-card.feature::after{width:460px;height:420px;right:-160px;bottom:-180px;background:rgba(243,195,0,.16);filter:blur(100px)}
@media (min-width:1024px){
  .work-card.feature{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);grid-template-rows:1fr auto auto auto auto 1fr;column-gap:12px;padding:12px}
  .work-card.feature .frame{grid-column:1;grid-row:1/7;align-self:center}
  .work-card.feature .tag-row{grid-column:2;grid-row:2;margin:0 24px}
  .work-card.feature h2{grid-column:2;grid-row:3;margin:18px 24px 0;max-width:12ch}
  .work-card.feature .card-line{grid-column:2;grid-row:4;margin:12px 24px 0;font-size:17px}
  .work-card.feature .link{grid-column:2;grid-row:5;justify-self:start;margin:14px 24px 0}
}
@media (min-width:1101px){
  .work-card.wide-3{grid-column:span 2;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);grid-template-rows:1fr auto auto auto auto 1fr;column-gap:8px;padding:12px}
  /* the shot fills the card height, so the row has no empty bands */
  .work-card.wide-3 .frame{grid-column:1;grid-row:1/7;align-self:stretch}
  .work-card.wide-3 .frame img{flex:1;min-height:0;height:100%;aspect-ratio:auto;object-position:left top}
  .work-card.wide-3 .tag-row{grid-column:2;grid-row:2;margin:0 16px}
  .work-card.wide-3 h2{grid-column:2;grid-row:3;margin:16px 16px 0;font-size:28px;line-height:1.1}
  .work-card.wide-3 .card-line{grid-column:2;grid-row:4;margin:10px 16px 0}
  .work-card.wide-3 .link{grid-column:2;grid-row:5;justify-self:start;margin:12px 16px 0}
}
@media (max-width:1100px){
  .work-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .work-card.wide-2{grid-column:span 2}
}
@media (min-width:1024px) and (max-width:1100px){
  .work-card.wide-2{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);grid-template-rows:1fr auto auto auto auto 1fr;column-gap:8px;padding:12px}
  .work-card.wide-2 .frame{grid-column:1;grid-row:1/7;align-self:center}
  .work-card.wide-2 .tag-row{grid-column:2;grid-row:2;margin:0 20px}
  .work-card.wide-2 h2{grid-column:2;grid-row:3;margin:18px 20px 0;font-size:32px;line-height:1.08}
  .work-card.wide-2 .card-line{grid-column:2;grid-row:4;margin:12px 20px 0}
  .work-card.wide-2 .link{grid-column:2;grid-row:5;justify-self:start;margin:14px 20px 0}
}
@media (max-width:767px){
  .work-section{padding-top:32px}
  .work-note{align-items:flex-start;font-size:14.5px}
  .work-note svg{margin-top:1px}
  .work-grid{grid-template-columns:1fr;gap:20px}
  .work-card.wide-2{grid-column:auto}
  .work-card{padding:10px 10px 24px}
  .work-card .tag-row{margin:20px 10px 0}
  .work-card h2{margin:14px 10px 0;font-size:23px}
  .work-card.feature h2{font-size:28px}
  .work-card .card-line{margin:6px 10px 0}
  .work-card .link{margin:8px 10px -10px}
}
@media (max-width:380px){
  .work-hero .hero-actions .btn{width:100%}
}
/* small phones: a long trade pill wraps as one balanced, rounded tag */
@media (max-width:420px){
  .work-card .tag-row{gap:6px;margin-inline:6px}
  .work-card .tag{max-width:100%;padding:5px 10px;font-size:11.5px;border-radius:12px;text-wrap:balance}
}

/* the sample cards move with their section as one block (.reveal on the container, see gcd.css) */

/* ---------- closing ---------- */
.work-close{padding-top:96px}
.closing .hero-actions{justify-content:center}
@media (max-width:767px){.closing .hero-actions .btn{flex:1 1 100%}}

@media (prefers-reduced-motion:reduce){
  .work-hero .page-hero-inner > *{animation:none}
  .work-card:hover{translate:none}
}
