/* ==========================================================================
   Aurem — Work page (3D project ring, sticky filter bar, grid/list views,
   recognition, CTA). Uses brand tokens (hero.css) + components.css.
   Shared by the Work Hero, Work Projects, Recognition and Work CTA widgets.
   ========================================================================== */

/* ---------- Hero ---------- */
.ah-whero {
  z-index: 1; overflow: hidden; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
}
.ah-whero__glow {
  position: absolute; left: 50%; bottom: -25%; z-index: -1;
  width: 100vw; height: 70vw; max-height: 1000px;
  transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(200, 16, 46, .4), rgba(255, 90, 42, .1) 55%, transparent);
  filter: blur(30px); pointer-events: none;
}
.ah-whero > .ah-grain { z-index: 0; }
.ah-whero__inner {
  position: relative; z-index: 2;
  width: 100%; max-width: 1680px; margin: 0 auto;
  padding: clamp(120px, 18vh, 200px) var(--ah-gutter) 0;
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 48px;
}
.ah-whero .ah-eyebrow { margin-bottom: 24px; }
.ah-whero__title {
  margin: 0; max-width: 13ch;
  font-family: var(--ah-display); font-variation-settings: "opsz" 96;
  font-weight: 650; font-size: clamp(2.8rem, min(6.4vw, 10.5vh), 7.6rem);
  line-height: .94; letter-spacing: -.055em;
}
.ah-whero__title em { font-family: var(--ah-serif); font-style: italic; font-weight: 400; font-size: 1.06em; color: var(--ah-ember); letter-spacing: -.02em; }
.ah-whero__stats { list-style: none; margin: 0; padding: 0 0 .6em; display: flex; }
.ah-whero__stats li { padding: 0 26px; border-left: 1px solid var(--ah-line); }
.ah-whero__stats li:first-child { padding-left: 0; border-left: 0; }
.ah-whero__stats strong { display: block; font-family: var(--ah-display); font-size: clamp(2rem, 3vw, 3rem); font-weight: 600; line-height: 1; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.ah-whero__stats li > span { font-size: 13px; color: var(--ah-muted); }

/* the ring */
.ah-ring {
  --rw: clamp(110px, min(9.5vw, 17vh), 200px);
  --rh: calc(var(--rw) * 1.28);
  position: relative; z-index: 1;
  flex: 1; min-height: clamp(260px, 36vh, 480px);
  perspective: 1600px; perspective-origin: 50% 30%;
  cursor: grab; touch-action: pan-y;
  user-select: none; -webkit-user-select: none;
}
.ah-ring.is-grabbing { cursor: grabbing; }
.ah-ring__spin { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; }
.ah-ring__card {
  position: absolute; left: calc(var(--rw) / -2); top: calc(var(--rh) / -2);
  width: var(--rw); height: var(--rh);
  border-radius: 18px; overflow: hidden;
  background: var(--ah-wine);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9);
  will-change: opacity;
}
.ah-ring__card img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1) contrast(1.3) brightness(.9); pointer-events: none; -webkit-user-drag: none; }
.ah-ring__card::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: multiply;
  background: linear-gradient(170deg, #ff6a3a 0%, #c8102e 45%, #4a0612 80%, #12040a 100%);
}
.ah-ring__card span {
  position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 2;
  font-family: var(--ah-display); font-size: 15px; font-weight: 600; letter-spacing: -.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .6);
}
.ah-whero__hint {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 0 0 clamp(24px, 4vh, 40px);
  font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ah-muted);
}
.ah-whero__hint span { width: 36px; height: 1px; background: var(--ah-ember); }

/* ---------- Filter bar ---------- */
.ah-wlist { z-index: 1; padding: clamp(40px, 7vh, 80px) 0 clamp(80px, 12vh, 140px); }
.ah-wbar {
  position: sticky; top: 92px; z-index: 20;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 0 var(--ah-gutter);
  pointer-events: none;
  transition: top .6s var(--ah-ease);
}
html.ah-nav-hidden .ah-wbar { top: 16px; }
.ah-wbar__pill {
  pointer-events: auto;
  display: flex; align-items: center; gap: 6px; padding: 5px;
  max-width: 100%; overflow-x: auto; scrollbar-width: none;
  border-radius: 999px; border: 1px solid var(--ah-line);
  background: rgba(20, 11, 15, .78);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8);
}
.ah-wbar__pill::-webkit-scrollbar { display: none; }
.ah-wbar__filters { display: flex; gap: 2px; flex: none; }
.ah-wfilter {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 16px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--ah-muted);
  transition: color .3s, background-color .3s;
}
.ah-wfilter sup { font-size: 10px; color: var(--ah-ember); transition: color .3s; }
.ah-wfilter:hover { color: var(--ah-text); }
.ah-wfilter.is-active { color: var(--ah-ink); background: linear-gradient(135deg, var(--ah-gold), var(--ah-ember)); }
.ah-wfilter.is-active sup { color: var(--ah-wine); }
.ah-wbar__sep { flex: none; width: 1px; height: 24px; background: var(--ah-line); margin: 0 4px; }
.ah-wbar__views { display: flex; gap: 2px; flex: none; }
.ah-wview { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ah-muted); transition: color .3s, background-color .3s; }
.ah-wview svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ah-wview:hover { color: var(--ah-text); }
.ah-wview.is-active { color: var(--ah-ink); background: var(--ah-text); }
.ah-wbar__count { pointer-events: auto; font-size: 13px; color: var(--ah-muted); }
.ah-wbar__count b { color: var(--ah-text); font-variant-numeric: tabular-nums; }

/* ---------- Grid view ---------- */
.ah-wgrid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(24px, 4vw, 72px); row-gap: clamp(48px, 8vh, 100px);
  align-items: start;
  max-width: 1680px; margin: clamp(40px, 7vh, 72px) auto 0; padding: 0 var(--ah-gutter);
}
.ah-wgrid[hidden] { display: none; }
/* staggered columns: every second visible card drops down */
.ah-wcard:nth-child(even of :not(.is-hidden)) { margin-top: var(--ah-wstagger, clamp(60px, 14vh, 180px)); }
.ah-wcard.is-hidden { display: none; }
.ah-wcard { display: block; }
.ah-wcard__media {
  position: relative; aspect-ratio: 4 / 3;
  border-radius: var(--ah-radius-lg); overflow: hidden; isolation: isolate;
  -webkit-mask-image: linear-gradient(#000, #000); mask-image: linear-gradient(#000, #000);
  background: var(--ah-wine);
}
.ah-wcard--tall .ah-wcard__media { aspect-ratio: 4 / 5; }
.ah-wcard__duo, .ah-wcard__color { position: absolute; inset: 0; }
.ah-wcard__media img { position: absolute; left: 0; top: -6%; width: 100%; height: 112%; object-fit: cover; transition: scale 1.2s var(--ah-ease); }
.ah-wcard__color { z-index: 3; clip-path: inset(100% 0% 0% 0%); transition: clip-path .9s var(--ah-ease); }
.ah-wcard__color img { filter: saturate(1.1); }
.ah-wcard__year {
  position: absolute; left: 16px; top: 16px; z-index: 4;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(7, 6, 10, .5); border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 12px; font-weight: 700;
}
.ah-wcard__info { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 20px; margin-top: 22px; }
.ah-wcard__client { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ah-gold); }
.ah-wcard__title {
  grid-column: 1; margin: 10px 0 0;
  font-family: var(--ah-display); font-weight: 600;
  font-size: clamp(1.5rem, 2.4vw, 2.5rem); line-height: 1.05; letter-spacing: -.045em;
  transition: transform .7s var(--ah-ease), color .4s;
}
.ah-wcard__tags { grid-column: 1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ah-wcard__tags span { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--ah-line); font-size: 12px; font-weight: 600; color: var(--ah-muted); }
.ah-wcard__arrow {
  grid-column: 2; grid-row: 1 / span 3; align-self: start;
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--ah-line);
  transition: background-color .4s, border-color .4s, transform .7s var(--ah-ease);
}
.ah-wcard__arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) {
  .ah-wcard:hover .ah-wcard__color { clip-path: inset(0% 0% 0% 0%); }
  .ah-wcard:hover .ah-wcard__media img { scale: 1.05; }
  .ah-wcard:hover .ah-wcard__title { transform: translateX(8px); color: var(--ah-blush); }
  .ah-wcard:hover .ah-wcard__arrow { background: var(--ah-ember); border-color: var(--ah-ember); transform: rotate(45deg); }
}
.ah-wcard:focus-visible { outline: none; }
.ah-wcard:focus-visible .ah-wcard__media { outline: 2px solid var(--ah-gold); outline-offset: 4px; }

/* ---------- List view ---------- */
.ah-wtable { max-width: 1680px; margin: clamp(40px, 7vh, 72px) auto 0; padding: 0 var(--ah-gutter); }
.ah-wtable[hidden] { display: none; }
.ah-wtable__head, .ah-wrow__link {
  display: grid; grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1.8fr) minmax(0, 1.2fr) 52px;
  align-items: center; gap: 24px;
}
.ah-wtable__head { padding-bottom: 14px; border-bottom: 1px solid var(--ah-line); font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ah-muted); }
.ah-wtable__rows { list-style: none; margin: 0; padding: 0; }
.ah-wrow { position: relative; border-bottom: 1px solid var(--ah-line); }
.ah-wrow.is-hidden { display: none; }
.ah-wrow::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(255, 90, 42, .12), transparent 70%);
  transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ah-ease);
}
.ah-wrow__link { padding: 26px 0; transition: opacity .4s; }
.ah-wrow__year { font-size: 14px; font-weight: 700; color: var(--ah-muted); font-variant-numeric: tabular-nums; }
.ah-wrow__client { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ah-gold); }
.ah-wrow__title { font-family: var(--ah-display); font-size: clamp(1.3rem, 2vw, 2rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.15; transition: transform .7s var(--ah-ease), color .4s; }
.ah-wrow__svc { font-size: 14px; color: var(--ah-muted); }
.ah-wrow__arrow { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--ah-line); justify-self: end; transition: background-color .4s, border-color .4s, transform .7s var(--ah-ease); }
.ah-wrow__arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) {
  .ah-wtable__rows:hover .ah-wrow:not(:hover) .ah-wrow__link { opacity: .35; }
  .ah-wrow:hover::before { transform: scaleY(1); }
  .ah-wrow:hover .ah-wrow__title { transform: translateX(10px); color: var(--ah-blush); }
  .ah-wrow:hover .ah-wrow__arrow { background: var(--ah-ember); border-color: var(--ah-ember); transform: rotate(45deg); }
}
/* floating preview that follows the cursor over the list */
.ah-wpreview {
  position: fixed; left: 0; top: 0; z-index: 30;
  width: clamp(220px, 20vw, 340px); aspect-ratio: 4 / 3;
  border-radius: 18px; overflow: hidden;
  pointer-events: none; opacity: 0; transform: scale(.6);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9);
}
.ah-wpreview img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ah-wempty { max-width: 1680px; margin: 60px auto 0; padding: 0 var(--ah-gutter); text-align: center; font-size: 18px; color: var(--ah-muted); }
.ah-wempty[hidden] { display: none; }

/* ---------- Recognition ---------- */
.ah-awards { z-index: 1; padding: clamp(60px, 10vh, 120px) 0 clamp(80px, 12vh, 140px); }
.ah-awards__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 120px); align-items: end; margin-top: clamp(40px, 7vh, 72px); }
.ah-awards__stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ah-awards__stats li { padding: 20px 22px; border-radius: var(--ah-radius-md); border: 1px solid var(--ah-line); background: rgba(255, 255, 255, .03); }
.ah-awards__stats strong { display: block; font-family: var(--ah-display); font-size: clamp(2.4rem, 3.6vw, 3.6rem); font-weight: 600; line-height: 1; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.ah-awards__stats li > span { display: block; margin-top: 8px; font-size: 14px; color: var(--ah-muted); }
.ah-awards__list { list-style: none; margin: clamp(48px, 8vh, 80px) 0 0; padding: 0; border-top: 1px solid var(--ah-line); }
.ah-awards__list li {
  display: grid; grid-template-columns: 90px minmax(0, 1.2fr) minmax(0, 1fr) 40px; align-items: center; gap: 24px;
  padding: 22px 0; border-bottom: 1px solid var(--ah-line);
  transition: background-color .4s, padding .6s var(--ah-ease);
}
.ah-awards__list li > span:first-child { font-size: 14px; font-weight: 700; color: var(--ah-ember); }
.ah-awards__list li > span:nth-child(2) { font-family: var(--ah-display); font-size: clamp(1.2rem, 1.8vw, 1.7rem); font-weight: 600; letter-spacing: -.03em; }
.ah-awards__list li > span:nth-child(3) { color: var(--ah-muted); }
.ah-awards__arrow { justify-self: end; color: var(--ah-ember); transition: transform .6s var(--ah-ease); }
@media (hover: hover) {
  .ah-awards__list li:hover { background: rgba(255, 255, 255, .03); padding-left: 16px; padding-right: 16px; }
  .ah-awards__list li:hover .ah-awards__arrow { transform: translate(3px, -3px); }
}

/* ---------- CTA ---------- */
.ah-wcta { z-index: 1; overflow: hidden; isolation: isolate; padding: clamp(100px, 16vh, 180px) 0 clamp(110px, 18vh, 200px); text-align: center; }
.ah-wcta__glow { position: absolute; left: 50%; top: 50%; z-index: -1; width: 90vw; height: 60vw; max-height: 900px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(200, 16, 46, .35), rgba(255, 90, 42, .1) 55%, transparent); filter: blur(30px); pointer-events: none; }
.ah-wcta__inner { display: grid; justify-items: center; }
.ah-wcta__title {
  margin: 0;
  font-family: var(--ah-display); font-variation-settings: "opsz" 96;
  font-weight: 600; font-size: clamp(3rem, 8vw, 9rem);
  line-height: .94; letter-spacing: -.055em;
}
.ah-wcta__title em { font-family: var(--ah-serif); font-style: italic; font-weight: 400; color: var(--ah-ember); letter-spacing: -.02em; }
.ah-wcta__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px; margin-top: 40px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .ah-wtable__head, .ah-wrow__link { grid-template-columns: 60px minmax(0, 1fr) minmax(0, 1.6fr) 44px; }
  .ah-wtable__head span:nth-child(4), .ah-wrow__svc { display: none; }
  .ah-awards__grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .ah-wgrid { grid-template-columns: 1fr; }
  .ah-wcard:nth-child(even of :not(.is-hidden)) { margin-top: 0; }
  .ah-wbar { top: 80px; }
  .ah-wfilter { padding: 0 12px; font-size: 13px; }
  .ah-wtable__head { display: none; }
  .ah-wrow__link { grid-template-columns: minmax(0, 1fr) 40px; gap: 6px 16px; }
  .ah-wrow__year { grid-row: 1; grid-column: 1; font-size: 12px; }
  .ah-wrow__client { grid-column: 1; }
  .ah-wrow__title { grid-column: 1; }
  .ah-wrow__arrow { grid-column: 2; grid-row: 1 / span 3; }
  .ah-awards__list li { grid-template-columns: 56px minmax(0, 1fr) 24px; }
  .ah-awards__list li > span:nth-child(3) { display: none; }
  .ah-whero__stats li { padding: 0 16px; }
  .ah-head .ah-label:last-child { display: none; }
  .ah-head { grid-template-columns: auto 1fr; }
}

/* ==========================================================================
   Elementor widget additions
   ========================================================================== */

/* Hero: ring options */
.ah-ring[hidden] { display: none; }
.ah-ring--natural .ah-ring__card img { filter: none; }
.ah-ring--natural .ah-ring__card::before { display: none; }
.ah-ring--static { cursor: default; }

/* Projects: layout switches */
.ah-wbar--static { position: relative; top: auto; }
html.ah-nav-hidden .ah-wbar--static { top: auto; }
.ah-wgrid--flat .ah-wcard:nth-child(even of :not(.is-hidden)) { margin-top: 0; }
.ah-wcard--plain .ah-wcard__color { display: none; }

/* Recognition: a linked row is clickable across its whole width */
.ah-awards__list li { position: relative; }
.ah-awards__list a.ah-awards__arrow::after { content: ""; position: absolute; inset: 0; }
.ah-awards__list a.ah-awards__arrow:focus-visible { outline: none; }
.ah-awards__list li:has(a.ah-awards__arrow:focus-visible) { outline: 2px solid var(--ah-gold); outline-offset: 4px; }

/* CTA: optional text under the title */
.ah-wcta__text { max-width: 56ch; margin: 24px 0 0; font-size: clamp(1rem, 1.3vw, 1.2rem); line-height: 1.6; color: var(--ah-muted); }

/* WordPress admin bar pushes the sticky header down */
.admin-bar .ah-wbar { top: 124px; }
html.ah-nav-hidden .admin-bar .ah-wbar { top: 48px; }
.admin-bar .ah-wbar--static { top: auto; }
@media (max-width: 782px) {
  .admin-bar .ah-wbar { top: 126px; }
}
