:root {
  --orange: #f2760a;
  --orange-bright: #ff9d0a;
  --ink: #10100e;
  --panel: #171715;
  --line: rgba(255, 255, 255, 0.13);
  --muted: #a8a69f;
  --white: #fffdf9;
  --page-pad: clamp(18px, 4vw, 58px);
  --page-max: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--ink);
  overflow-x: clip;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  color: var(--white);
  background:
    radial-gradient(circle at 80% 8%, rgba(242, 118, 10, 0.1), transparent 28rem),
    var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 11px 16px;
  color: #111;
  background: #fff;
  border-radius: 999px;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}
.skip-link:focus { transform: translateY(0); }

.work-gallery,
.work-cta,
.work-footer {
  width: min(calc(100% - (var(--page-pad) * 2)), var(--page-max));
  margin-inline: auto;
}

.work-brand {
  display: inline-flex;
  align-items: center;
  min-width: 56px;
  min-height: 56px;
  border-radius: 10px;
}

.work-brand__mark {
  position: relative;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  background: transparent;
  border: 0;
  box-shadow: none;
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.work-brand__mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.work-brand:hover .work-brand__mark { transform: translateY(-2px) scale(1.04); }
.work-brand:focus-visible { outline: 3px solid var(--orange-bright); outline-offset: 4px; }

.work-gallery__header > div > span,
.work-cta > div > span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  color: var(--orange-bright);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.work-cta > a {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 17px;
  padding: 0 23px;
  color: #111;
  background: #fff;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 800;
  transition: transform 200ms ease, background 200ms ease;
}
.work-cta > a:hover { color: #111; background: #fff; transform: translateY(-2px); }

.work-gallery { padding: clamp(22px, 3vw, 42px) 0 clamp(80px, 11vw, 150px); }
.work-gallery__actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: clamp(58px, 8vw, 105px); }
.work-back-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 0 20px;
  color: #111;
  background: #fff;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.work-back-link:hover { box-shadow: 0 12px 30px rgba(0, 0, 0, .24); transform: translateY(-2px); }
.work-back-link:focus-visible { outline: 3px solid var(--orange-bright); outline-offset: 3px; }
.work-gallery__header { display: grid; grid-template-columns: 1fr minmax(300px, 440px); gap: 40px; align-items: end; margin-bottom: clamp(38px, 6vw, 68px); }
.work-gallery__header span { margin-bottom: 13px !important; }
.work-gallery__header h1, .work-cta h2 { margin: 0; font-size: clamp(2.5rem, 5vw, 5rem); letter-spacing: -.065em; line-height: .96; }
.work-gallery__header p { margin: 0; color: var(--muted); line-height: 1.65; }

.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.work-card { content-visibility: auto; contain-intrinsic-size: auto 620px; overflow: hidden; background: linear-gradient(145deg, #1a1a18, #131311); border: 1px solid var(--line); border-radius: 24px; transition: border-color 280ms ease, transform 280ms cubic-bezier(.2,.8,.2,1), box-shadow 280ms ease; }
.work-card:hover { border-color: rgba(255, 157, 10, .48); box-shadow: 0 24px 70px rgba(0, 0, 0, .28); transform: translateY(-6px); }
.work-card__preview {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #090908;
  border-bottom: 1px solid var(--line);
}

.work-card__preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 600ms cubic-bezier(.2,.8,.2,1), filter 300ms ease;
}

.work-card__preview img.work-card__image--contain {
  object-fit: contain;
  background: #000;
}

.work-card__preview > span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  padding: 0 17px;
  color: #111;
  background: rgba(255, 255, 255, .94);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .22);
  font-size: .74rem;
  font-weight: 800;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 240ms ease, transform 240ms ease, background 200ms ease;
}

.work-card__preview:hover img { filter: brightness(.76); transform: scale(1.035); }
.work-card__preview:hover img.work-card__image--contain { transform: none; }
.work-card__preview:hover > span,
.work-card__preview:focus-visible > span { opacity: 1; transform: translateY(0); }
.work-card__preview > span:hover { background: var(--orange-bright); }
.work-card__preview:focus-visible { outline: 3px solid var(--orange-bright); outline-offset: -3px; }

.work-card__body { padding: clamp(22px, 3vw, 34px); }
.work-card__meta, .work-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.work-card__meta { color: var(--orange-bright); font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.work-card__meta span:last-child { color: #77756f; }
.work-card h3 { margin: 25px 0 10px; font-size: clamp(1.65rem, 3vw, 2.55rem); letter-spacing: -.045em; }
.work-card__body > p { max-width: 570px; margin: 0; color: var(--muted); line-height: 1.62; }
.work-card__footer { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }
.work-card__footer > div { display: flex; flex-wrap: wrap; gap: 7px; }
.work-card__footer > div span { padding: 6px 9px; color: #bbb8b1; background: rgba(255,255,255,.05); border-radius: 999px; font-size: .65rem; }
.work-card__status { display: inline-flex; min-height: 44px; align-items: center; gap: 6px; color: #a9a69f; font-size: .7rem; white-space: nowrap; transition: color 180ms ease; }
.work-card__status:hover { color: #fff; }
.work-card__status b { color: var(--orange-bright); font-size: 1rem; }

[data-work-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .65s ease, transform .65s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--card-index, 0) * 70ms); }
[data-work-reveal].is-visible { opacity: 1; transform: translateY(0); }

.work-cta { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: clamp(80px, 10vw, 140px); padding: clamp(36px, 6vw, 78px); overflow: hidden; background: radial-gradient(circle at 95% 0, rgba(255, 184, 51, .46), transparent 32%), linear-gradient(135deg, #f05a00, #ff9d0a); border-radius: 26px; }
.work-cta > div > span { margin-bottom: 15px; color: #311202; }
.work-cta h2 { color: #120b04; }
.work-cta > a { flex: 0 0 auto; }

.work-footer { display: grid; grid-template-columns: 1.2fr 1fr auto auto; gap: 44px; align-items: end; padding-block: 34px 46px; color: #99968f; border-top: 1px solid var(--line); }
.work-footer p { margin: 0; font-size: .78rem; line-height: 1.6; }
.work-footer > div { display: flex; gap: 22px; }
.work-footer > div a { min-height: 44px; display: inline-flex; align-items: center; color: #d1cec8; font-size: .75rem; }
.work-footer > div a:hover { color: var(--orange-bright); }
.work-footer small { white-space: nowrap; font-size: .68rem; }

@media (max-width: 900px) {
  .work-gallery__header { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .work-footer { grid-template-columns: 1fr 1fr; align-items: start; }
}

@media (max-width: 760px) {
  :root { --page-pad: 17px; }
  .work-gallery { padding: 17px 0 78px; }
  .work-gallery__actions { margin-bottom: 62px; }
  .work-gallery__header { margin-bottom: 34px; }
  .work-card { border-radius: 19px; }
  .work-card__preview > span { right: 12px; bottom: 12px; opacity: 1; transform: none; }
  .work-card__footer { align-items: flex-end; }
  .work-card__status { max-width: 80px; white-space: normal; text-align: right; }
  .work-cta { align-items: flex-start; flex-direction: column; border-radius: 20px; }
  .work-cta > a { width: 100%; }
}

@media (max-width: 520px) {
  .work-grid { gap: 17px; }
  .work-card__body { padding: 23px 19px; }
  .work-card h3 { margin-top: 21px; }
  .work-card__footer { gap: 10px; }
  .work-card__footer > div span { font-size: .6rem; }
  .work-footer { grid-template-columns: 1fr; gap: 22px; }
  .work-footer > div { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-work-reveal] { opacity: 1; transform: none; }
}

@supports not (overflow: clip) { html, body { overflow-x: hidden; } }
