/* Work With Me editorial layout, versioned for cache-safe deploys. */
:root {
  --work-paper: #e8e7e2;
  --work-ink: #080808;
  --work-muted: rgba(8, 8, 8, 0.56);
  --work-line: rgba(8, 8, 8, 0.24);
  --work-cyan: #8ad9e8;
}

html {
  scroll-behavior: smooth;
}

.work-body {
  min-width: 320px;
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  background: #090909;
  color: #f3f3ef;
  user-select: text;
  -webkit-user-select: text;
}

.work-body *,
.work-body *::before,
.work-body *::after {
  user-select: text;
  -webkit-user-select: text;
}

.work-body button,
.work-body a {
  -webkit-tap-highlight-color: transparent;
}

.work-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: 2px;
  background: rgba(255, 255, 255, 0.05);
}

.work-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--work-cyan);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.work-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 900;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 58px;
  padding: 0 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 7, 7, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.work-brand {
  color: #fff;
  text-decoration: none;
}

.work-header__nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.work-header__nav a {
  color: rgba(255, 255, 255, 0.54);
  text-decoration: none;
  transition: color 180ms ease;
}

.work-header__nav a:hover {
  color: #fff;
}

.work-language {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
}

.work-language button {
  width: 36px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.5);
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.work-language button[aria-pressed="true"] {
  color: #050505;
  border-color: var(--work-cyan);
  background: var(--work-cyan);
}

.work-page {
  width: min(1540px, calc(100% - 32px));
  margin: 76px auto 16px;
  box-shadow: 0 28px 120px rgba(0, 0, 0, 0.42);
}

.work-paper {
  color: var(--work-ink);
  background: var(--work-paper);
}

.work-kicker {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--work-line);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.work-kicker span:nth-child(2) {
  text-align: center;
}

.work-kicker span:last-child {
  text-align: right;
}

.work-hero {
  min-height: calc(100vh - 92px);
  padding: 0 22px 22px;
}

.work-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: end;
  padding: clamp(52px, 8vw, 118px) 0 clamp(42px, 5vw, 72px);
}

.work-hero__title {
  display: flex;
  flex-direction: column;
  margin: 0;
  font-size: clamp(52px, 7.4vw, 126px);
  font-weight: 400;
  letter-spacing: -0.07em;
  line-height: 0.84;
  text-transform: uppercase;
}

.work-hero__title-accent {
  margin-top: 0.16em;
  color: transparent;
  -webkit-text-stroke: 1.3px var(--work-ink);
}

.work-hero__copy {
  display: grid;
  gap: 20px;
  min-width: 0;
  max-width: 480px;
  padding-bottom: 4px;
  font-size: clamp(14px, 1.2vw, 18px);
  line-height: 1.38;
}

.work-hero__copy p:last-of-type {
  color: var(--work-muted);
}

.work-hero__copy .work-hero__seo {
  padding-top: 18px;
  border-top: 1px solid var(--work-line);
  color: var(--work-muted);
  font-size: 12px;
  line-height: 1.5;
}

.work-primary-cta {
  display: inline-flex;
  width: fit-content;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  color: var(--work-paper);
  border: 1px solid var(--work-ink);
  background: var(--work-ink);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-decoration: none;
  transition:
    color 220ms ease,
    background 220ms ease;
}

.work-primary-cta:hover {
  color: var(--work-ink);
  background: transparent;
}

.work-hero__media {
  margin: 0;
  overflow: hidden;
  border-top: 1px solid var(--work-ink);
}

.work-hero__media img {
  display: block;
  width: 100%;
  height: clamp(320px, 44vw, 680px);
  object-fit: cover;
  filter: grayscale(1) contrast(1.12);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-hero__media--artifact {
  background: #000;
}

.work-hero__media--artifact img {
  object-fit: contain;
  filter: none;
}

.work-hero__media:hover img {
  transform: scale(1.015);
}

.work-hero__media figcaption,
.work-clients__image figcaption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.work-hero__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--work-line);
}

.work-hero__meta > div {
  display: grid;
  gap: 7px;
  min-height: 94px;
  padding: 18px 0;
  border-right: 1px solid var(--work-line);
}

.work-hero__meta > div:not(:first-child) {
  padding-left: 22px;
}

.work-hero__meta > div:last-child {
  border-right: 0;
}

.work-hero__meta span,
.work-hero__meta strong,
.work-hero__meta a {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.work-hero__meta span {
  color: var(--work-muted);
}

.work-hero__meta a {
  color: inherit;
}

.work-services,
.work-process,
.work-faq {
  padding: clamp(56px, 7vw, 110px) 22px 22px;
  background: #070707;
}

.work-section-head {
  display: grid;
  grid-template-columns: 90px minmax(250px, 0.8fr) minmax(300px, 1.2fr);
  gap: 28px;
  align-items: start;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.work-section-head > span,
.work-section-head h2 {
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
}

.work-section-head > span {
  color: rgba(255, 255, 255, 0.4);
  font-size: 9px;
}

.work-section-head h2 {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 58px);
  font-weight: 500;
  line-height: 0.94;
}

.work-section-head p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.58);
  font-size: clamp(14px, 1.2vw, 18px);
  line-height: 1.42;
}

.work-section-head--dark {
  border-color: var(--work-line);
}

.work-section-head--dark > span,
.work-section-head--dark p {
  color: var(--work-muted);
}

.work-service-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.work-service {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(180px, 0.72fr) minmax(240px, 1fr);
  gap: 22px;
  min-height: 235px;
  padding: 30px 18px 44px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.work-service:nth-child(odd) {
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.work-service:nth-child(even) {
  padding-left: 24px;
}

.work-service > span:first-child,
.work-service__use {
  color: rgba(255, 255, 255, 0.38);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.work-service h3 {
  margin: 0;
  font-size: clamp(22px, 2.1vw, 36px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.work-service p {
  max-width: 480px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  line-height: 1.45;
}

.work-service__use {
  position: absolute;
  right: 18px;
  bottom: 16px;
  left: 76px;
}

.work-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 0.72fr minmax(0, 1fr);
  min-height: 520px;
  margin-top: 64px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.work-strip img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: contain;
  background: #000;
  filter: none;
}

.work-strip__stamp {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  color: var(--work-ink);
  background: var(--work-cyan);
}

.work-strip__stamp span {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.work-strip__stamp strong {
  font-size: clamp(38px, 4.5vw, 74px);
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 0.87;
}

.work-clients,
.work-request {
  padding: clamp(56px, 7vw, 110px) 22px 22px;
}

.work-clients__layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(34px, 6vw, 110px);
  padding-top: 64px;
}

.work-clients__image {
  align-self: start;
  margin: 0;
  position: sticky;
  top: 84px;
}

.work-clients__image img {
  display: block;
  width: 100%;
  max-height: 760px;
  object-fit: cover;
}

.work-artifact-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--work-line);
  background: #000;
}

.work-artifact-stack img {
  width: 100%;
  height: 420px;
  object-fit: contain;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.work-artifact-stack img:last-child {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.work-artifact-stack__main {
  grid-column: 1 / -1;
  height: 620px !important;
  border-top: 0 !important;
}

.work-client-list {
  border-top: 1px solid var(--work-line);
}

.work-client-list article {
  display: grid;
  grid-template-columns: 54px minmax(180px, 0.7fr) minmax(220px, 1fr);
  gap: 22px;
  padding: 28px 0;
  border-bottom: 1px solid var(--work-line);
}

.work-client-list span {
  color: var(--work-muted);
  font-family: var(--font-mono);
  font-size: 8px;
}

.work-client-list h3 {
  margin: 0;
  font-size: clamp(22px, 2.5vw, 42px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.work-client-list p {
  color: var(--work-muted);
  font-size: 13px;
  line-height: 1.42;
}

.work-process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

.work-process__grid li {
  display: grid;
  align-content: space-between;
  min-height: 270px;
  padding: 26px 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.work-process__grid li:last-child {
  border-right: 0;
}

.work-process__grid span {
  color: rgba(255, 255, 255, 0.38);
  font-family: var(--font-mono);
  font-size: 8px;
}

.work-process__grid strong {
  align-self: end;
  font-size: clamp(24px, 3vw, 48px);
  font-weight: 400;
  letter-spacing: -0.05em;
}

.work-process__grid p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  line-height: 1.4;
}

.work-faq__list {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.work-faq__list details {
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.work-faq__list summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  min-height: 100px;
  padding: 24px 0;
  font-size: clamp(24px, 3vw, 48px);
  font-weight: 400;
  letter-spacing: -0.045em;
  cursor: pointer;
  list-style: none;
}

.work-faq__list summary::-webkit-details-marker {
  display: none;
}

.work-faq__list summary::after {
  content: "+";
  color: var(--work-cyan);
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 400;
}

.work-faq__list details[open] summary::after {
  content: "−";
}

.work-faq__list p {
  max-width: 760px;
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
  line-height: 1.5;
}

.work-request__layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.36fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 110px);
  padding: 70px 0 48px;
}

.work-request__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.work-request__aside > span,
.work-request__aside p {
  color: var(--work-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: 0.08em;
}

.work-request__aside a {
  font-size: clamp(34px, 4vw, 64px);
  letter-spacing: -0.06em;
  color: var(--work-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--work-ink);
}

.work-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--work-ink);
}

.work-form__honeypot {
  position: absolute;
  left: -9999px;
}

.work-field {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  min-height: 144px;
  padding: 20px 18px;
  border-right: 1px solid var(--work-line);
  border-bottom: 1px solid var(--work-line);
}

.work-field:nth-of-type(even) {
  border-right: 0;
}

.work-field--wide {
  grid-column: 1 / -1;
  border-right: 0;
}

.work-field > span {
  color: var(--work-muted);
  font-family: var(--font-mono);
  font-size: 8px;
}

.work-field strong {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.work-field input,
.work-field textarea {
  grid-column: 2;
  width: 100%;
  align-self: end;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--work-line);
  border-radius: 0;
  outline: none;
  color: var(--work-ink);
  background: transparent;
  font: 400 16px/1.4 var(--font-sans);
  resize: vertical;
}

.work-field input:focus,
.work-field textarea:focus {
  border-bottom-color: var(--work-ink);
}

.work-field input::placeholder,
.work-field textarea::placeholder {
  color: rgba(8, 8, 8, 0.46);
}

.work-submit {
  grid-column: 1 / -1;
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  color: #fff;
  border: 1px solid var(--work-ink);
  background: var(--work-ink);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition:
    color 220ms ease,
    background 220ms ease;
}

.work-submit:hover {
  color: var(--work-ink);
  background: var(--work-cyan);
}

.work-submit span:last-child {
  font-size: 28px;
}

.work-form__note {
  grid-column: 1 / -1;
  max-width: 620px;
  padding-top: 12px;
  color: var(--work-muted);
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.5;
}

.work-success {
  grid-column: 2;
  min-height: 430px;
  align-content: center;
  gap: 22px;
  padding: 42px;
  color: #fff;
  background: var(--work-ink);
}

.work-success:not([hidden]) {
  display: grid;
}

.work-success span {
  color: var(--work-cyan);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.work-success h3 {
  margin: 0;
  font-size: clamp(44px, 6vw, 94px);
  font-weight: 400;
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.work-success p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 16px;
  line-height: 1.45;
}

.work-success a {
  width: fit-content;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.work-footer {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr;
  gap: 32px;
  min-height: 380px;
  padding: 40px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  background: #070707;
}

.work-footer > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.work-footer span,
.work-footer a {
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.work-footer strong {
  margin-top: auto;
  font-size: clamp(54px, 7vw, 112px);
  font-weight: 400;
  letter-spacing: -0.08em;
  line-height: 0.82;
}

.work-floating-cta {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 850;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 18px;
  color: #050505;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: var(--work-cyan);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.36);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.work-floating-cta:hover {
  transform: translateY(-2px);
}

.work-floating-cta.is-hidden {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

.reveal-work {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 720ms ease,
    transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-work.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .work-hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .work-hero__copy {
    max-width: 650px;
  }

  .work-service {
    grid-template-columns: 38px 0.76fr 1fr;
  }

  .work-clients__layout {
    grid-template-columns: 0.72fr 1fr;
  }
}

@media (max-width: 760px) {
  .work-header {
    grid-template-columns: 1fr auto;
    min-height: 54px;
    padding: 0 14px;
  }

  .work-header__nav {
    display: none;
  }

  .work-page {
    width: calc(100% - 12px);
    margin-top: 60px;
    margin-bottom: 6px;
  }

  .work-kicker {
    grid-template-columns: 1fr auto;
    padding: 14px 12px;
  }

  .work-kicker span:nth-child(2) {
    display: none;
  }

  .work-hero {
    min-height: auto;
    padding: 0 12px 12px;
  }

  .work-hero__grid {
    gap: 30px;
    padding: 54px 0 38px;
  }

  .work-hero__title {
    min-width: 0;
    font-size: clamp(40px, 11.6vw, 64px);
  }

  .work-hero__title span {
    max-width: 100%;
    overflow-wrap: normal;
  }

  .work-hero__copy {
    font-size: 14px;
  }

  .work-primary-cta {
    width: 100%;
    min-height: 50px;
  }

  .work-hero__media img {
    height: 62vw;
    min-height: 250px;
  }

  .work-hero__meta {
    grid-template-columns: 1fr;
  }

  .work-hero__meta > div,
  .work-hero__meta > div:not(:first-child) {
    min-height: 74px;
    padding: 14px 0;
    border-right: 0;
    border-bottom: 1px solid var(--work-line);
  }

  .work-services,
  .work-process,
  .work-faq,
  .work-clients,
  .work-request {
    padding: 58px 12px 12px;
  }

  .work-section-head {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-bottom: 26px;
  }

  .work-section-head h2 {
    font-size: 36px;
  }

  .work-service-table {
    grid-template-columns: 1fr;
  }

  .work-service,
  .work-service:nth-child(even) {
    grid-template-columns: 34px 1fr;
    min-height: 260px;
    padding: 24px 0 44px;
    border-right: 0;
  }

  .work-service h3 {
    font-size: 30px;
  }

  .work-service p {
    grid-column: 2;
  }

  .work-service__use {
    left: 46px;
  }

  .work-strip {
    grid-template-columns: 1fr 0.72fr;
    min-height: 420px;
    margin-top: 44px;
  }

  .work-strip img {
    min-height: 420px;
  }

  .work-strip img:last-child {
    display: block;
    grid-column: 1 / -1;
    min-height: 320px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .work-strip__stamp {
    padding: 14px;
  }

  .work-strip__stamp strong {
    font-size: 36px;
  }

  .work-clients__layout {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 36px;
  }

  .work-clients__image {
    position: static;
  }

  .work-clients__image img {
    max-height: 520px;
  }

  .work-artifact-stack img {
    height: 300px;
  }

  .work-artifact-stack__main {
    height: 460px !important;
  }

  .work-section-head p,
  .work-service p,
  .work-client-list p,
  .work-request__aside p {
    max-width: 100%;
    text-align: left;
    text-wrap: pretty;
  }

  .work-client-list article {
    grid-template-columns: 34px 1fr;
    gap: 12px;
  }

  .work-client-list h3 {
    font-size: 28px;
  }

  .work-client-list p {
    grid-column: 2;
  }

  .work-process__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-process__grid li {
    min-width: 0;
    min-height: 220px;
  }

  .work-process__grid li:nth-child(2) {
    border-right: 0;
  }

  .work-process__grid strong {
    font-size: 28px;
    overflow-wrap: anywhere;
  }

  .work-faq__list summary {
    min-height: 82px;
    padding: 18px 0;
    font-size: 24px;
  }

  .work-faq__list p {
    max-width: 100%;
    text-wrap: pretty;
  }

  .work-request__layout {
    grid-template-columns: 1fr;
    gap: 42px;
    padding: 42px 0 28px;
  }

  .work-form {
    grid-template-columns: 1fr;
  }

  .work-field,
  .work-field:nth-of-type(even),
  .work-field--wide {
    grid-column: 1;
    border-right: 0;
  }

  .work-success {
    grid-column: 1;
    min-height: 390px;
    padding: 28px 18px;
  }

  .work-footer {
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
    padding: 30px 12px 80px;
  }

  .work-footer > div:first-child {
    grid-column: 1 / -1;
  }

  .work-footer strong {
    margin-top: 34px;
    font-size: 62px;
  }

  .work-floating-cta {
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    min-height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal-work {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
